Blame


1 8a35f56c 2022-07-16 thomas .PATH:${.CURDIR}/../lib
2 8a35f56c 2022-07-16 thomas
3 8a35f56c 2022-07-16 thomas SUBDIR = libexec
4 8a35f56c 2022-07-16 thomas
5 8a35f56c 2022-07-16 thomas .include "../got-version.mk"
6 8a35f56c 2022-07-16 thomas .include "Makefile.inc"
7 8a35f56c 2022-07-16 thomas
8 8a35f56c 2022-07-16 thomas PROG = gotwebd
9 8a35f56c 2022-07-16 thomas SRCS = config.c sockets.c log.c gotwebd.c parse.y proc.c \
10 8a35f56c 2022-07-16 thomas fcgi.c gotweb.c got_operations.c
11 8a35f56c 2022-07-16 thomas SRCS += blame.c commit_graph.c delta.c diff.c \
12 8a35f56c 2022-07-16 thomas diffreg.c error.c fileindex.c object.c object_cache.c \
13 8a35f56c 2022-07-16 thomas object_idset.c object_parse.c opentemp.c path.c pack.c \
14 8a35f56c 2022-07-16 thomas privsep.c reference.c repository.c sha1.c worktree.c \
15 8a35f56c 2022-07-16 thomas utf8.c inflate.c buf.c rcsutil.c diff3.c \
16 8a35f56c 2022-07-16 thomas lockfile.c deflate.c object_create.c delta_cache.c \
17 8a35f56c 2022-07-16 thomas gotconfig.c diff_main.c diff_atomize_text.c diff_myers.c \
18 8a35f56c 2022-07-16 thomas diff_output.c diff_output_plain.c diff_output_unidiff.c \
19 8a35f56c 2022-07-16 thomas diff_output_edscript.c diff_patience.c bloom.c murmurhash2.c \
20 8a35f56c 2022-07-16 thomas worktree_open.c patch.c sigs.c date.c
21 8a35f56c 2022-07-16 thomas
22 8a35f56c 2022-07-16 thomas MAN = ${PROG}.conf.5 ${PROG}.8
23 8a35f56c 2022-07-16 thomas
24 8a35f56c 2022-07-16 thomas CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}
25 8a35f56c 2022-07-16 thomas LDADD += -lz -levent -lutil -lm
26 8a35f56c 2022-07-16 thomas YFLAGS =
27 8a35f56c 2022-07-16 thomas DPADD = ${LIBEVENT} ${LIBUTIL}
28 8a35f56c 2022-07-16 thomas #CFLAGS += -DGOT_NO_OBJ_CACHE
29 8a35f56c 2022-07-16 thomas
30 8a35f56c 2022-07-16 thomas .if ${GOT_RELEASE} != "Yes"
31 8a35f56c 2022-07-16 thomas NOMAN = Yes
32 8a35f56c 2022-07-16 thomas .endif
33 8a35f56c 2022-07-16 thomas
34 8a35f56c 2022-07-16 thomas .if defined(PROFILE)
35 8a35f56c 2022-07-16 thomas CPPFLAGS += -DPROFILE
36 8a35f56c 2022-07-16 thomas DEBUG = -O0 -pg -g -static
37 8a35f56c 2022-07-16 thomas .else
38 8a35f56c 2022-07-16 thomas DEBUG = -O0 -g
39 8a35f56c 2022-07-16 thomas .endif
40 8a35f56c 2022-07-16 thomas
41 8a35f56c 2022-07-16 thomas realinstall:
42 8a35f56c 2022-07-16 thomas if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
43 8a35f56c 2022-07-16 thomas ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
44 8a35f56c 2022-07-16 thomas fi
45 8a35f56c 2022-07-16 thomas ${INSTALL} -c -o root -g daemon -m 0755 ${PROG} ${BINDIR}/${PROG}
46 8a35f56c 2022-07-16 thomas if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
47 8a35f56c 2022-07-16 thomas ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
48 8a35f56c 2022-07-16 thomas fi
49 8a35f56c 2022-07-16 thomas if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
50 8a35f56c 2022-07-16 thomas ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
51 8a35f56c 2022-07-16 thomas fi
52 8a35f56c 2022-07-16 thomas ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
53 8a35f56c 2022-07-16 thomas ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
54 8a35f56c 2022-07-16 thomas
55 8a35f56c 2022-07-16 thomas .include <bsd.prog.mk>