Blame


1 3efd8e31 2022-10-23 thomas .PATH:${.CURDIR}/../lib ${.CURDIR}/../gotd
2 3efd8e31 2022-10-23 thomas
3 3efd8e31 2022-10-23 thomas .include "../got-version.mk"
4 3efd8e31 2022-10-23 thomas
5 3efd8e31 2022-10-23 thomas PREFIX ?= /usr/local
6 3efd8e31 2022-10-23 thomas BINDIR ?= ${PREFIX}/bin
7 3efd8e31 2022-10-23 thomas
8 3efd8e31 2022-10-23 thomas PROG= gotsh
9 3efd8e31 2022-10-23 thomas SRCS= gotsh.c error.c pkt.c sha1.c serve.c path.c gitproto.c \
10 3efd8e31 2022-10-23 thomas imsg.c pollfd.c reference_parse.c
11 3efd8e31 2022-10-23 thomas
12 3efd8e31 2022-10-23 thomas MAN = ${PROG}.1
13 3efd8e31 2022-10-23 thomas
14 3efd8e31 2022-10-23 thomas CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
15 3efd8e31 2022-10-23 thomas
16 3efd8e31 2022-10-23 thomas .if defined(PROFILE)
17 3efd8e31 2022-10-23 thomas LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
18 3efd8e31 2022-10-23 thomas .else
19 3efd8e31 2022-10-23 thomas LDADD = -lutil -lz -lm -levent
20 3efd8e31 2022-10-23 thomas .endif
21 3efd8e31 2022-10-23 thomas DPADD = ${LIBZ} ${LIBUTIL}
22 3efd8e31 2022-10-23 thomas
23 3efd8e31 2022-10-23 thomas .if ${GOT_RELEASE} != "Yes"
24 3efd8e31 2022-10-23 thomas NOMAN = Yes
25 3efd8e31 2022-10-23 thomas .endif
26 3efd8e31 2022-10-23 thomas
27 3efd8e31 2022-10-23 thomas realinstall:
28 3efd8e31 2022-10-23 thomas ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
29 3efd8e31 2022-10-23 thomas -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
30 3efd8e31 2022-10-23 thomas
31 3efd8e31 2022-10-23 thomas .include <bsd.prog.mk>