Blob


1 .PATH:${.CURDIR}/../lib
3 SUBDIR = ../libexec
5 .include "../got-version.mk"
7 PROG = gotweb
8 SRCS = gotweb.c parse.y blame.c commit_graph.c delta.c diff.c \
9 diffreg.c error.c fileindex.c object.c object_cache.c \
10 object_idset.c object_parse.c opentemp.c path.c pack.c \
11 privsep.c reference.c repository.c sha1.c worktree.c \
12 inflate.c buf.c rcsutil.c diff3.c lockfile.c \
13 deflate.c object_create.c delta_cache.c
14 MAN = ${PROG}.conf.5
16 CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR} \
17 -I${PREFIX}/include
19 LDADD += -L${PREFIX}/lib -static -lkcgihtml -lkcgi -lz -lutil
21 .if ${GOT_RELEASE} != "Yes"
22 NOMAN = Yes
23 .endif
25 realinstall:
26 if [ ! -d ${CGI_DIR}/. ]; then \
27 ${INSTALL} -d -o root -g daemon -m 755 ${CGI_DIR}; \
28 fi
29 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 ${PROG} \
30 ${CGI_DIR}/${PROG}
31 if [ ! -d ${TMPL_DIR}/. ]; then \
32 ${INSTALL} -d -o root -g daemon -m 755 ${TMPL_DIR}; \
33 fi
34 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
35 files/cgi-bin/gw_tmpl/* ${TMPL_DIR}
36 if [ ! -d ${HTTPD_DIR}/. ]; then \
37 ${INSTALL} -d -o root -g daemon -m 755 ${HTTPD_DIR}; \
38 fi
39 if [ ! -d ${TMP_DIR}/. ]; then \
40 ${INSTALL} -d -o ${WWWUSR} -g ${WWWGRP} -m 755 ${TMP_DIR}; \
41 fi
42 if [ ! -d ${PROG_DIR}/. ]; then \
43 ${INSTALL} -d -o root -g daemon -m 755 ${PROG_DIR}; \
44 fi
45 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 files/htdocs/${PROG}/* \
46 ${PROG_DIR}
48 .include <bsd.prog.mk>