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" || make(clean) || make(obj)
20 SUBDIR += cvg
21 .endif
23 release: clean
24 sed -i -e "s/_RELEASE=No/_RELEASE=Yes/" got-version.mk
25 ${MAKE} dist
26 sed -i -e "s/_RELEASE=Yes/_RELEASE=No/" got-version.mk
28 dist: clean
29 mkdir /tmp/got-${GOT_VERSION}
30 pax -rw * /tmp/got-${GOT_VERSION}
31 find /tmp/got-${GOT_VERSION} -name obj -type d -delete
32 rm /tmp/got-${GOT_VERSION}/got-dist.txt
33 tar -C /tmp -zcf got-${GOT_VERSION}.tar.gz got-${GOT_VERSION}
34 rm -rf /tmp/got-${GOT_VERSION}
35 tar -ztf got-${GOT_VERSION}.tar.gz | sed -e 's/^got-${GOT_VERSION}//' \
36 | sort > got-dist.txt.new
37 diff -u got-dist.txt got-dist.txt.new
38 rm got-dist.txt.new
40 tmpl:
41 ${MAKE} -C template
43 tmpl-regress:
44 ${MAKE} -C regress/template
46 webd: tmpl
47 ${MAKE} -C gotwebd
49 webd-install:
50 ${MAKE} -C gotwebd install
52 server:
53 ${MAKE} -C gotctl
54 ${MAKE} -C gotd
55 ${MAKE} -C gotsh
56 ${MAKE} -C gitwrapper
58 server-install:
59 ${MAKE} -C gotctl install
60 ${MAKE} -C gotd install
61 ${MAKE} -C gotsh install
62 ${MAKE} -C gitwrapper install
64 server-regress:
65 ${MAKE} -C regress/gotd
67 webd-regress:
68 ${MAKE} -C regress/gotwebd
70 .include <bsd.subdir.mk>