1 .PATH:${.CURDIR}/../lib
5 .include "../got-version.mk"
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
16 CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${PREFIX}/include
18 LDADD += -L${PREFIX}/lib -static -lkcgihtml -lkcgi -lz -lutil
20 .if ${GOT_RELEASE} != "Yes"
25 if [ ! -d ${CGI_DIR}/. ]; then \
26 ${INSTALL} -d -o root -g daemon -m 755 ${CGI_DIR}; \
28 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 ${PROG} \
30 if [ ! -d ${TMPL_DIR}/. ]; then \
31 ${INSTALL} -d -o root -g daemon -m 755 ${TMPL_DIR}; \
33 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
34 files/cgi-bin/gw_tmpl/* ${TMPL_DIR}
35 if [ ! -d ${HTTPD_DIR}/. ]; then \
36 ${INSTALL} -d -o root -g daemon -m 755 ${HTTPD_DIR}; \
38 if [ ! -d ${TMP_DIR}/. ]; then \
39 ${INSTALL} -d -o ${WWWUSR} -g ${WWWGRP} -m 755 ${TMP_DIR}; \
41 if [ ! -d ${PROG_DIR}/. ]; then \
42 ${INSTALL} -d -o root -g daemon -m 755 ${PROG_DIR}; \
44 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 files/htdocs/${PROG}/* \
47 .include <bsd.prog.mk>