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 fileindex.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 worktree.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 MAN = ${PROG}.conf.5 ${PROG}.8
20 CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR} \
21 -I${KCGIBASE}/include
22 LDADD += -L${KCGIBASE}/lib -lkcgihtml -lkcgi -lz
23 LDSTATIC = ${STATIC}
25 .if ${GOT_RELEASE} != "Yes"
26 NOMAN = Yes
27 .endif
29 realinstall:
30 if [ ! -d ${DESTDIR}${CGI_DIR}/. ]; then \
31 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${CGI_DIR}; \
32 fi
33 if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
34 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
35 fi
36 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 ${PROG} \
37 ${DESTDIR}${CGI_DIR}/${PROG}
38 if [ ! -d ${DESTDIR}${TMPL_DIR}/. ]; then \
39 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${TMPL_DIR}; \
40 fi
41 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
42 ${.CURDIR}/files/cgi-bin/gw_tmpl/* ${DESTDIR}${TMPL_DIR}
43 if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
44 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
45 fi
46 if [ ! -d ${DESTDIR}${TMP_DIR}/. ]; then \
47 ${INSTALL} -d -o ${WWWUSR} -g ${WWWGRP} -m 755 ${DESTDIR}${TMP_DIR}; \
48 fi
49 if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
50 ${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
51 fi
52 ${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
53 ${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
55 .include <bsd.prog.mk>