Blob


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