Blob


1 .PATH:${.CURDIR}/../lib
3 SUBDIR = libexec
5 .include "../got-version.mk"
6 .include "Makefile.inc"
8 PROG = gotweb
9 SRCS = gotweb.c parse.y blame.c commit_graph.c delta.c diff.c \
10 diffreg.c error.c object.c object_cache.c \
11 object_idset.c object_parse.c opentemp.c path.c pack.c \
12 privsep.c reference.c repository.c sha1.c \
13 inflate.c buf.c rcsutil.c diff3.c lockfile.c \
14 deflate.c object_create.c delta_cache.c gotconfig.c \
15 diff_main.c diff_atomize_text.c diff_myers.c diff_output.c \
16 diff_output_plain.c diff_output_unidiff.c \
17 diff_output_edscript.c diff_patience.c \
18 bloom.c murmurhash2.c sigs.c date.c
19 MAN = ${PROG}.conf.5 ${PROG}.8
21 CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR} \
22 -I${KCGIBASE}/include
23 LDADD += -L${KCGIBASE}/lib -lkcgihtml -lkcgi -lz -lm
24 LDSTATIC = ${STATIC}
26 .if ${GOT_RELEASE} != "Yes"
27 NOMAN = Yes
28 .endif
30 realinstall:
31 if [ ! -d ${DESTDIR}${CGI_DIR}/. ]; then \
32 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${CGI_DIR}; \
33 fi
34 if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
35 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
36 fi
37 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 ${PROG} \
38 ${DESTDIR}${CGI_DIR}/${PROG}
39 if [ ! -d ${DESTDIR}${TMPL_DIR}/. ]; then \
40 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${TMPL_DIR}; \
41 fi
42 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
43 ${.CURDIR}/files/cgi-bin/gw_tmpl/* ${DESTDIR}${TMPL_DIR}
44 if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
45 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
46 fi
47 if [ ! -d ${DESTDIR}${TMP_DIR}/. ]; then \
48 ${INSTALL} -d -o ${WWWUSR} -g ${WWWGRP} -m 755 ${DESTDIR}${TMP_DIR}; \
49 fi
50 if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
51 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
52 fi
53 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
54 ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
56 .include <bsd.prog.mk>