Blob


1 .PATH:${.CURDIR}/../lib
3 .include "../got-version.mk"
5 PROG= got
6 SRCS= got.c blame.c commit_graph.c delta.c diff.c \
7 diffreg.c error.c fileindex.c object.c object_cache.c \
8 object_idset.c object_parse.c opentemp.c path.c pack.c \
9 privsep.c reference.c repository.c sha1.c worktree.c \
10 inflate.c buf.c rcsutil.c diff3.c lockfile.c \
11 deflate.c object_create.c delta_cache.c fetch.c \
12 gotconfig.c diff_main.c diff_atomize_text.c \
13 diff_myers.c diff_output.c diff_output_plain.c \
14 diff_output_unidiff.c diff_output_edscript.c \
15 diff_patience.c send.c deltify.c pack_create.c dial.c
17 MAN = ${PROG}.1 got-worktree.5 git-repository.5 got.conf.5
19 CPPFLAGS = -I${.CURDIR}/../include -I${.CURDIR}/../lib
21 .if defined(PROFILE)
22 LDADD = -lutil_p -lz_p -lc_p
23 .else
24 LDADD = -lutil -lz
25 .endif
26 DPADD = ${LIBZ} ${LIBUTIL}
28 .if ${GOT_RELEASE} != "Yes"
29 NOMAN = Yes
30 .endif
32 realinstall:
33 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} \
34 -m ${BINMODE} ${PROG} ${BINDIR}/${PROG}
36 dist:
37 mkdir ../got-${GOT_VERSION}/got
38 cp ${SRCS} ${MAN} ../got-${GOT_VERSION}/got
40 .include <bsd.prog.mk>