Blame


1 20662ea0 2021-04-10 stsp .PATH:${.CURDIR}/../lib
2 20662ea0 2021-04-10 stsp
3 20662ea0 2021-04-10 stsp .include "../got-version.mk"
4 20662ea0 2021-04-10 stsp
5 20662ea0 2021-04-10 stsp PROG= gotadmin
6 20662ea0 2021-04-10 stsp SRCS= gotadmin.c \
7 20662ea0 2021-04-10 stsp deflate.c delta.c delta_cache.c deltify.c error.c gotconfig.c \
8 20662ea0 2021-04-10 stsp inflate.c lockfile.c object.c object_cache.c object_create.c \
9 05118f5a 2021-06-22 stsp object_idset.c object_parse.c opentemp.c pack.c pack_create.c \
10 05118f5a 2021-06-22 stsp path.c privsep.c reference.c repository.c repository_admin.c \
11 05118f5a 2021-06-22 stsp sha1.c
12 20662ea0 2021-04-10 stsp MAN = ${PROG}.1
13 20662ea0 2021-04-10 stsp
14 20662ea0 2021-04-10 stsp CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib
15 20662ea0 2021-04-10 stsp
16 20662ea0 2021-04-10 stsp .if defined(PROFILE)
17 20662ea0 2021-04-10 stsp LDADD = -lutil_p -lz_p -lc_p
18 20662ea0 2021-04-10 stsp .else
19 20662ea0 2021-04-10 stsp LDADD = -lutil -lz
20 20662ea0 2021-04-10 stsp .endif
21 20662ea0 2021-04-10 stsp DPADD = ${LIBZ} ${LIBUTIL}
22 20662ea0 2021-04-10 stsp
23 20662ea0 2021-04-10 stsp .if ${GOT_RELEASE} != "Yes"
24 20662ea0 2021-04-10 stsp NOMAN = Yes
25 20662ea0 2021-04-10 stsp .endif
26 20662ea0 2021-04-10 stsp
27 20662ea0 2021-04-10 stsp realinstall:
28 20662ea0 2021-04-10 stsp ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
29 20662ea0 2021-04-10 stsp -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
30 20662ea0 2021-04-10 stsp
31 20662ea0 2021-04-10 stsp dist:
32 20662ea0 2021-04-10 stsp mkdir ../got-${GOT_VERSION}/${PROG}
33 20662ea0 2021-04-10 stsp cp ${SRCS} ${MAN} ../got-${GOT_VERSION}/${PROG}
34 20662ea0 2021-04-10 stsp
35 20662ea0 2021-04-10 stsp .include <bsd.prog.mk>