sync got.1 authors list with people appearing in commit log and copyright lines
[got-portable.git] / gotwebd / Makefile.am
blob881fd3e0ab069d2d5f09b3990991d500f72e9c82
1 sbin_PROGRAMS = gotwebd
3 include $(top_builddir)/Makefile.common
5 # /home/n6tadam/projects/got/gotwebd/../template/template -o pages.c pages.tmpl
7 BUILT_SOURCES = pages.c
8 CLEANFILES = pages.c parse.c
10 pages.c: $(top_srcdir)/gotwebd/pages.tmpl
11         ${MAKE} -C $(top_builddir)/template
12         $(top_builddir)/template/template -o pages.c $(top_srcdir)/gotwebd/pages.tmpl
14 gotwebd_SOURCES = config.c \
15                   $(top_srcdir)/lib/blame.c \
16                   $(top_srcdir)/lib/bloom.c \
17                   $(top_srcdir)/lib/buf.c \
18                   $(top_srcdir)/lib/commit_graph.c \
19                   $(top_srcdir)/lib/date.c \
20                   $(top_srcdir)/lib/deflate.c \
21                   $(top_srcdir)/lib/delta.c \
22                   $(top_srcdir)/lib/delta_cache.c \
23                   $(top_srcdir)/lib/diff.c \
24                   $(top_srcdir)/lib/diff3.c \
25                   $(top_srcdir)/lib/diff_atomize_text.c \
26                   $(top_srcdir)/lib/diff_main.c \
27                   $(top_srcdir)/lib/diff_myers.c \
28                   $(top_srcdir)/lib/diff_output.c \
29                   $(top_srcdir)/lib/diff_output_edscript.c \
30                   $(top_srcdir)/lib/diff_output_plain.c \
31                   $(top_srcdir)/lib/diff_output_unidiff.c \
32                   $(top_srcdir)/lib/diff_patience.c \
33                   $(top_srcdir)/lib/diffreg.c \
34                   $(top_srcdir)/lib/error.c \
35                   $(top_srcdir)/lib/fileindex.c \
36                   $(top_srcdir)/lib/gotconfig.c \
37                   $(top_srcdir)/lib/hash.c \
38                   $(top_srcdir)/lib/inflate.c \
39                   $(top_srcdir)/lib/lockfile.c \
40                   $(top_srcdir)/lib/log.c \
41                   $(top_srcdir)/lib/murmurhash2.c \
42                   $(top_srcdir)/lib/object.c \
43                   $(top_srcdir)/lib/object_cache.c \
44                   $(top_srcdir)/lib/object_create.c \
45                   $(top_srcdir)/lib/object_idset.c \
46                   $(top_srcdir)/lib/object_open_privsep.c \
47                   $(top_srcdir)/lib/object_parse.c \
48                   $(top_srcdir)/lib/object_qid.c \
49                   $(top_srcdir)/lib/opentemp.c \
50                   $(top_srcdir)/lib/pack.c \
51                   $(top_srcdir)/lib/patch.c \
52                   $(top_srcdir)/lib/path.c \
53                   $(top_srcdir)/lib/pollfd.c \
54                   $(top_srcdir)/lib/privsep.c \
55                   $(top_srcdir)/lib/rcsutil.c \
56                   $(top_srcdir)/lib/read_gitconfig_privsep.c \
57                   $(top_srcdir)/lib/read_gotconfig_privsep.c \
58                   $(top_srcdir)/lib/reference.c \
59                   $(top_srcdir)/lib/reference_parse.c \
60                   $(top_srcdir)/lib/repository.c \
61                   $(top_srcdir)/lib/sigs.c \
62                   $(top_srcdir)/lib/utf8.c \
63                   $(top_srcdir)/lib/worktree.c \
64                   $(top_srcdir)/lib/worktree_open.c \
65                   $(top_srcdir)/template/tmpl.c \
66                   fcgi.c \
67                   got_operations.c \
68                   gotweb.c \
69                   gotwebd.c \
70                   pages.c \
71                   parse.y \
72                   sockets.c
74 gotwebd_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
75 EXTRA_DIST = $(top_srcdir)/gotwebd/*.h \
76              $(top_srcdir)/gotwebd/*.tmpl \
77              $(top_srcdir)/template/tmpl.h \
78              gotwebd.8 gotwebd.conf.5
80 man5_MANS = gotwebd.conf.5
81 man8_MANS = gotwebd.8
83 LDADD = -L$(top_builddir)/compat -L$(top_builddir)/template \
84         -lopenbsd-compat -lm
85 LDADD += $(libbsd_LIBS) \
86          $(libevent_LIBS) \
87          $(zlib_LIBS) \
88          $(libuuid_LIBS) \
89          $(libutil_LIBS) \
90          $(libmd_LIBS)
91 if HOST_FREEBSD
92 LDADD += -lmd
93 endif
95 AM_CPPFLAGS += $(libbsd_CFLAGS) $(libevent_CFLAGS) $(zlib_CFLAGS) \
96                $(libuuid_CFLAGS) $(libmd_CFLAGS)
98 #realinstall:
99 #       if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
100 #               ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
101 #       fi
102 #       ${INSTALL} -c -o root -g daemon -m 0755 ${PROG} ${BINDIR}/${PROG}
103 #       if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
104 #               ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
105 #       fi
106 #       if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
107 #               ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
108 #       fi
109 #       ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
110 #           ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
112 #.include <bsd.prog.mk>