Blame


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