Blame


1 a596b957 2022-07-14 tracey .PATH:${.CURDIR}/../lib
2 ed619ca0 2022-12-14 op .PATH:${.CURDIR}/../template
3 a596b957 2022-07-14 tracey
4 a596b957 2022-07-14 tracey SUBDIR = libexec
5 a596b957 2022-07-14 tracey
6 a596b957 2022-07-14 tracey .include "../got-version.mk"
7 a596b957 2022-07-14 tracey .include "Makefile.inc"
8 a596b957 2022-07-14 tracey
9 a596b957 2022-07-14 tracey PROG = gotwebd
10 a596b957 2022-07-14 tracey SRCS = config.c sockets.c log.c gotwebd.c parse.y proc.c \
11 ed619ca0 2022-12-14 op fcgi.c gotweb.c got_operations.c tmpl.c pages.c
12 a596b957 2022-07-14 tracey SRCS += blame.c commit_graph.c delta.c diff.c \
13 a596b957 2022-07-14 tracey diffreg.c error.c fileindex.c object.c object_cache.c \
14 a596b957 2022-07-14 tracey object_idset.c object_parse.c opentemp.c path.c pack.c \
15 53bf0b54 2023-02-23 op privsep.c reference.c repository.c hash.c worktree.c \
16 a596b957 2022-07-14 tracey utf8.c inflate.c buf.c rcsutil.c diff3.c \
17 a596b957 2022-07-14 tracey lockfile.c deflate.c object_create.c delta_cache.c \
18 a596b957 2022-07-14 tracey gotconfig.c diff_main.c diff_atomize_text.c diff_myers.c \
19 a596b957 2022-07-14 tracey diff_output.c diff_output_plain.c diff_output_unidiff.c \
20 a596b957 2022-07-14 tracey diff_output_edscript.c diff_patience.c bloom.c murmurhash2.c \
21 8e359fa0 2022-10-13 stsp worktree_open.c patch.c sigs.c date.c sockaddr.c \
22 96fd6df1 2022-10-13 stsp object_open_privsep.c read_gitconfig_privsep.c \
23 13b2bc37 2022-10-23 stsp read_gotconfig_privsep.c pollfd.c reference_parse.c
24 a596b957 2022-07-14 tracey
25 ed619ca0 2022-12-14 op .if exists(${.CURDIR}/../template/obj/template)
26 ed619ca0 2022-12-14 op TEMPLATE = ${.CURDIR}/../template/obj/template
27 ed619ca0 2022-12-14 op .else
28 ed619ca0 2022-12-14 op TEMPLATE = ${.CURDIR}/../template/template
29 ed619ca0 2022-12-14 op .endif
30 ed619ca0 2022-12-14 op
31 ed619ca0 2022-12-14 op .SUFFIXES: .tmpl
32 ed619ca0 2022-12-14 op .tmpl.c:
33 ed619ca0 2022-12-14 op ${TEMPLATE} -o $@ $<
34 ed619ca0 2022-12-14 op
35 8f46aeb1 2023-01-17 stsp CLEANFILES = pages.c
36 8f46aeb1 2023-01-17 stsp
37 a596b957 2022-07-14 tracey MAN = ${PROG}.conf.5 ${PROG}.8
38 a596b957 2022-07-14 tracey
39 a596b957 2022-07-14 tracey CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}
40 ed619ca0 2022-12-14 op CPPFLAGS += -I${.CURDIR}/../template
41 a596b957 2022-07-14 tracey LDADD += -lz -levent -lutil -lm
42 a596b957 2022-07-14 tracey YFLAGS =
43 a596b957 2022-07-14 tracey DPADD = ${LIBEVENT} ${LIBUTIL}
44 a596b957 2022-07-14 tracey #CFLAGS += -DGOT_NO_OBJ_CACHE
45 a596b957 2022-07-14 tracey
46 a596b957 2022-07-14 tracey .if ${GOT_RELEASE} != "Yes"
47 a596b957 2022-07-14 tracey NOMAN = Yes
48 a596b957 2022-07-14 tracey .endif
49 a596b957 2022-07-14 tracey
50 a596b957 2022-07-14 tracey .if defined(PROFILE)
51 a596b957 2022-07-14 tracey CPPFLAGS += -DPROFILE
52 a596b957 2022-07-14 tracey DEBUG = -O0 -pg -g -static
53 a596b957 2022-07-14 tracey .else
54 a596b957 2022-07-14 tracey DEBUG = -O0 -g
55 a596b957 2022-07-14 tracey .endif
56 a596b957 2022-07-14 tracey
57 a596b957 2022-07-14 tracey realinstall:
58 a596b957 2022-07-14 tracey if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
59 a596b957 2022-07-14 tracey ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
60 a596b957 2022-07-14 tracey fi
61 a596b957 2022-07-14 tracey ${INSTALL} -c -o root -g daemon -m 0755 ${PROG} ${BINDIR}/${PROG}
62 a596b957 2022-07-14 tracey if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
63 a596b957 2022-07-14 tracey ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
64 a596b957 2022-07-14 tracey fi
65 a596b957 2022-07-14 tracey if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
66 a596b957 2022-07-14 tracey ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
67 a596b957 2022-07-14 tracey fi
68 7cc8fde4 2022-08-31 op ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0644 \
69 a596b957 2022-07-14 tracey ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
70 a596b957 2022-07-14 tracey
71 a596b957 2022-07-14 tracey .include <bsd.prog.mk>