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 \
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
83 LDADD = -L$(top_builddir)/compat -L$(top_builddir)/template \
85 LDADD += $(libbsd_LIBS) \
95 AM_CPPFLAGS += $(libbsd_CFLAGS) $(libevent_CFLAGS) $(zlib_CFLAGS) \
96 $(libuuid_CFLAGS) $(libmd_CFLAGS)
99 # if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
100 # ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
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}; \
106 # if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
107 # ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
109 # ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
110 # ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
112 #.include <bsd.prog.mk>