Blame


1 b09c1279 2023-03-28 stsp .PATH:${.CURDIR}/../lib
2 b09c1279 2023-03-28 stsp .PATH:${.CURDIR}/../gotd
3 b09c1279 2023-03-28 stsp
4 b09c1279 2023-03-28 stsp .include "../got-version.mk"
5 b09c1279 2023-03-28 stsp
6 b09c1279 2023-03-28 stsp .if ${GOT_RELEASE} == "Yes"
7 b09c1279 2023-03-28 stsp BINDIR ?= ${PREFIX}/bin
8 b09c1279 2023-03-28 stsp .endif
9 b09c1279 2023-03-28 stsp
10 b09c1279 2023-03-28 stsp PROG= gitwrapper
11 b09c1279 2023-03-28 stsp
12 1963be61 2023-04-14 stsp SRCS= gitwrapper.c parse.y log.c dial.c path.c error.c \
13 eeb616b7 2023-04-14 stsp reference_parse.c hash.c object_parse.c imsg.c \
14 1eb38992 2023-04-14 stsp inflate.c pollfd.c
15 1eb38992 2023-04-14 stsp
16 b09c1279 2023-03-28 stsp CLEANFILES = parse.h
17 b09c1279 2023-03-28 stsp
18 c27166a8 2023-03-28 stsp MAN = ${PROG}.1
19 b09c1279 2023-03-28 stsp
20 b09c1279 2023-03-28 stsp CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib -I${.CURDIR}/../gotd
21 b09c1279 2023-03-28 stsp
22 b09c1279 2023-03-28 stsp .if defined(PROFILE)
23 b09c1279 2023-03-28 stsp LDADD = -lutil_p -lz_p -lm_p -lc_p -levent_p
24 b09c1279 2023-03-28 stsp .else
25 b09c1279 2023-03-28 stsp LDADD = -lutil -lz -lm -levent
26 b09c1279 2023-03-28 stsp .endif
27 b09c1279 2023-03-28 stsp DPADD = ${LIBZ} ${LIBUTIL}
28 b09c1279 2023-03-28 stsp
29 b09c1279 2023-03-28 stsp .if ${GOT_RELEASE} != "Yes"
30 b09c1279 2023-03-28 stsp NOMAN = Yes
31 b09c1279 2023-03-28 stsp .endif
32 b09c1279 2023-03-28 stsp
33 b09c1279 2023-03-28 stsp realinstall:
34 b09c1279 2023-03-28 stsp ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
35 b09c1279 2023-03-28 stsp -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
36 b09c1279 2023-03-28 stsp
37 b09c1279 2023-03-28 stsp .include <bsd.prog.mk>