1 .PATH
:${.CURDIR
}/..
/lib
5 .
include "../got-version.mk"
6 .
include "Makefile.inc"
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 \
19 MAN
= ${PROG}.conf
.5 ${PROG}.8
21 CPPFLAGS
+= -I
${.CURDIR
}/..
/include -I
${.CURDIR
}/..
/lib
-I
${.CURDIR
} \
23 LDADD
+= -L
${KCGIBASE}/lib
-lkcgihtml
-lkcgi
-lz
-lm
26 .if
${GOT_RELEASE} != "Yes"
31 if
[ ! -d
${DESTDIR}${CGI_DIR}/.
]; then \
32 ${INSTALL} -d
-o root
-g daemon
-m
755 ${DESTDIR}${CGI_DIR}; \
34 if
[ ! -d
${DESTDIR}${PUB_REPOS_DIR}/.
]; then \
35 ${INSTALL} -d
-o root
-g daemon
-m
755 ${DESTDIR}${PUB_REPOS_DIR}; \
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}; \
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}; \
47 if
[ ! -d
${DESTDIR}${TMP_DIR}/.
]; then \
48 ${INSTALL} -d
-o
${WWWUSR} -g
${WWWGRP} -m
755 ${DESTDIR}${TMP_DIR}; \
50 if
[ ! -d
${DESTDIR}${PROG_DIR}/.
]; then \
51 ${INSTALL} -d
-o root
-g daemon
-m
755 ${DESTDIR}${PROG_DIR}; \
53 ${INSTALL} -c
-o
${WWWUSR} -g
${WWWGRP} -m
0755 \
54 ${.CURDIR
}/files
/htdocs
/${PROG}/* ${DESTDIR}${PROG_DIR}
56 .
include <bsd.prog.mk
>