got: allow 'got log -x' to accept keywords
[got-portable.git] / gotwebd / Makefile.am
blob9f86edc781239405e37fc72f6ccd09b4430730c6
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/murmurhash2.c \
41                   $(top_srcdir)/lib/object.c \
42                   $(top_srcdir)/lib/object_cache.c \
43                   $(top_srcdir)/lib/object_create.c \
44                   $(top_srcdir)/lib/object_idset.c \
45                   $(top_srcdir)/lib/object_open_privsep.c \
46                   $(top_srcdir)/lib/object_parse.c \
47                   $(top_srcdir)/lib/object_qid.c \
48                   $(top_srcdir)/lib/opentemp.c \
49                   $(top_srcdir)/lib/pack.c \
50                   $(top_srcdir)/lib/patch.c \
51                   $(top_srcdir)/lib/path.c \
52                   $(top_srcdir)/lib/pollfd.c \
53                   $(top_srcdir)/lib/privsep.c \
54                   $(top_srcdir)/lib/rcsutil.c \
55                   $(top_srcdir)/lib/read_gitconfig_privsep.c \
56                   $(top_srcdir)/lib/read_gotconfig_privsep.c \
57                   $(top_srcdir)/lib/reference.c \
58                   $(top_srcdir)/lib/reference_parse.c \
59                   $(top_srcdir)/lib/repository.c \
60                   $(top_srcdir)/lib/sigs.c \
61                   $(top_srcdir)/lib/utf8.c \
62                   $(top_srcdir)/lib/worktree.c \
63                   $(top_srcdir)/lib/worktree_open.c \
64                   $(top_srcdir)/template/tmpl.c \
65                   fcgi.c \
66                   got_operations.c \
67                   gotweb.c \
68                   gotwebd.c \
69                   log.c \
70                   pages.c \
71                   parse.y \
72                   proc.c \
73                   sockets.c
74 if HOST_LINUX
75 nodist_gotwebd_SOURCES = $(top_srcdir)/compat/sockaddr-@PLATFORM@.c
76 else
77 nodist_gotwebd_SOURCES = $(top_srcdir)/lib/sockaddr.c
78 endif
80 gotwebd_DEPENDENCIES = $(top_builddir)/compat/libopenbsd-compat.a
81 EXTRA_DIST = $(top_srcdir)/gotwebd/*.h \
82              $(top_srcdir)/gotwebd/*.tmpl \
83              $(top_srcdir)/template/tmpl.h \
84              gotwebd.8 gotwebd.conf.5
86 man5_MANS = gotwebd.conf.5
87 man8_MANS = gotwebd.8
89 LDADD = -L$(top_builddir)/compat -L$(top_builddir)/template \
90         -lopenbsd-compat -lm
91 LDADD += $(libbsd_LIBS) \
92          $(libevent_LIBS) \
93          $(zlib_LIBS) \
94          $(libuuid_LIBS) \
95          $(libutil_LIBS) \
96          $(libmd_LIBS)
97 if HOST_FREEBSD
98 LDADD += -lmd
99 endif
101 AM_CPPFLAGS += $(libbsd_CFLAGS) $(libevent_CFLAGS) $(zlib_CFLAGS) \
102                $(libuuid_CFLAGS) $(libmd_CFLAGS)
104 #realinstall:
105 #       if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
106 #               ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
107 #       fi
108 #       ${INSTALL} -c -o root -g daemon -m 0755 ${PROG} ${BINDIR}/${PROG}
109 #       if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
110 #               ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
111 #       fi
112 #       if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
113 #               ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
114 #       fi
115 #       ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
116 #           ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
118 #.include <bsd.prog.mk>