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${PREFIX}/include
18 LDADD += -L${PREFIX}/lib -static -lkcgihtml -lkcgi -lz -lutil
20 .if ${GOT_RELEASE} != "Yes"
21 NOMAN = Yes
22 .endif
24 realinstall:
25 if [ ! -d ${CGI_DIR}/. ]; then \
26 ${INSTALL} -d -o root -g daemon -m 755 ${CGI_DIR}; \
27 fi
28 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 ${PROG} \
29 ${CGI_DIR}/${PROG}
30 if [ ! -d ${TMPL_DIR}/. ]; then \
31 ${INSTALL} -d -o root -g daemon -m 755 ${TMPL_DIR}; \
32 fi
33 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
34 files/cgi-bin/gw_tmpl/* ${TMPL_DIR}
35 if [ ! -d ${ETC_DIR}/. ]; then \
36 ${INSTALL} -d -o root -g daemon -m 755 ${ETC_DIR}; \
37 fi
38 if [ ! -d ${EXPL_DIR}/. ]; then \
39 ${INSTALL} -d -o root -g daemon -m 755 ${EXPL_DIR}; \
40 fi
41 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 files/etc/gotweb.conf \
42 ${ETC_DIR}/examples/gotweb.conf
43 if [ ! -d ${HTTPD_DIR}/. ]; then \
44 ${INSTALL} -d -o root -g daemon -m 755 ${HTTPD_DIR}; \
45 fi
46 if [ ! -d ${TMP_DIR}/. ]; then \
47 ${INSTALL} -d -o ${WWWUSR} -g ${WWWGRP} -m 755 ${TMP_DIR}; \
48 fi
49 if [ ! -d ${PROG_DIR}/. ]; then \
50 ${INSTALL} -d -o root -g daemon -m 755 ${PROG_DIR}; \
51 fi
52 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 files/htdocs/${PROG}/* \
53 ${PROG_DIR}
55 .include <bsd.prog.mk>