Hash :
7cc76137
Author :
Date :
2021-11-14T10:34:31
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
.PATH:${.CURDIR}/../lib
SUBDIR = libexec
.include "../got-version.mk"
.include "Makefile.inc"
PROG = gotweb
SRCS = gotweb.c parse.y blame.c commit_graph.c delta.c diff.c \
diffreg.c error.c object.c object_cache.c \
object_idset.c object_parse.c opentemp.c path.c pack.c \
privsep.c reference.c repository.c sha1.c \
inflate.c buf.c rcsutil.c diff3.c lockfile.c \
deflate.c object_create.c delta_cache.c gotconfig.c \
diff_main.c diff_atomize_text.c diff_myers.c diff_output.c \
diff_output_plain.c diff_output_unidiff.c \
diff_output_edscript.c diff_patience.c \
bloom.c murmurhash2.c
MAN = ${PROG}.conf.5 ${PROG}.8
CPPFLAGS += -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR} \
-I${KCGIBASE}/include
LDADD += -L${KCGIBASE}/lib -lkcgihtml -lkcgi -lz -lm
LDSTATIC = ${STATIC}
.if ${GOT_RELEASE} != "Yes"
NOMAN = Yes
.endif
realinstall:
if [ ! -d ${DESTDIR}${CGI_DIR}/. ]; then \
${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${CGI_DIR}; \
fi
if [ ! -d ${DESTDIR}${PUB_REPOS_DIR}/. ]; then \
${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PUB_REPOS_DIR}; \
fi
${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 ${PROG} \
${DESTDIR}${CGI_DIR}/${PROG}
if [ ! -d ${DESTDIR}${TMPL_DIR}/. ]; then \
${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${TMPL_DIR}; \
fi
${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
${.CURDIR}/files/cgi-bin/gw_tmpl/* ${DESTDIR}${TMPL_DIR}
if [ ! -d ${DESTDIR}${HTTPD_DIR}/. ]; then \
${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${HTTPD_DIR}; \
fi
if [ ! -d ${DESTDIR}${TMP_DIR}/. ]; then \
${INSTALL} -d -o ${WWWUSR} -g ${WWWGRP} -m 755 ${DESTDIR}${TMP_DIR}; \
fi
if [ ! -d ${DESTDIR}${PROG_DIR}/. ]; then \
${INSTALL} -d -o root -g daemon -m 755 ${DESTDIR}${PROG_DIR}; \
fi
${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 \
${.CURDIR}/files/htdocs/${PROG}/* ${DESTDIR}${PROG_DIR}
.include <bsd.prog.mk>