Blob


1 SUBDIR = libexec got tog gotadmin
3 .PHONY: release dist
5 .if make(regress) || make(obj) || make(clean) || make(release)
6 SUBDIR += regress
7 .endif
9 .if make(clean) || make(obj) || make(release)
10 SUBDIR += gotwebd gotd gotsh gotctl template gitwrapper
11 .endif
13 .if make(tags) || make(cleandir)
14 SUBDIR += lib
15 .endif
17 .include "got-version.mk"
19 .if "${GOT_RELEASE}" != "Yes"
20 SUBDIR += cvg
21 .elif make(clean) || make(obj)
22 SUBDIR += cvg
23 .endif
25 release: clean
26 sed -i -e "s/_RELEASE=No/_RELEASE=Yes/" got-version.mk
27 ${MAKE} dist
28 sed -i -e "s/_RELEASE=Yes/_RELEASE=No/" got-version.mk
30 dist: clean
31 mkdir /tmp/got-${GOT_VERSION}
32 pax -rw * /tmp/got-${GOT_VERSION}
33 find /tmp/got-${GOT_VERSION} -name obj -type d -delete
34 rm /tmp/got-${GOT_VERSION}/got-dist.txt
35 tar -C /tmp -zcf got-${GOT_VERSION}.tar.gz got-${GOT_VERSION}
36 rm -rf /tmp/got-${GOT_VERSION}
37 tar -ztf got-${GOT_VERSION}.tar.gz | sed -e 's/^got-${GOT_VERSION}//' \
38 | sort > got-dist.txt.new
39 diff -u got-dist.txt got-dist.txt.new
40 rm got-dist.txt.new
42 tmpl:
43 ${MAKE} -C template
45 tmpl-regress:
46 ${MAKE} -C regress/template
48 webd: tmpl
49 ${MAKE} -C gotwebd
51 webd-install:
52 ${MAKE} -C gotwebd install
54 server:
55 ${MAKE} -C gotctl
56 ${MAKE} -C gotd
57 ${MAKE} -C gotsh
58 ${MAKE} -C gitwrapper
60 server-install:
61 ${MAKE} -C gotctl install
62 ${MAKE} -C gotd install
63 ${MAKE} -C gotsh install
64 ${MAKE} -C gitwrapper install
66 server-regress:
67 ${MAKE} -C regress/gotd
69 .include <bsd.subdir.mk>