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
11 .endif
13 .if make(tags) || make(cleandir)
14 SUBDIR += lib
15 .endif
17 .include "got-version.mk"
19 release: clean
20 sed -i -e "s/_RELEASE=No/_RELEASE=Yes/" got-version.mk
21 ${MAKE} dist
22 sed -i -e "s/_RELEASE=Yes/_RELEASE=No/" got-version.mk
24 dist: clean
25 mkdir /tmp/got-${GOT_VERSION}
26 pax -rw * /tmp/got-${GOT_VERSION}
27 find /tmp/got-${GOT_VERSION} -name obj -type d -delete
28 rm /tmp/got-${GOT_VERSION}/got-dist.txt
29 tar -C /tmp -zcf got-${GOT_VERSION}.tar.gz got-${GOT_VERSION}
30 rm -rf /tmp/got-${GOT_VERSION}
31 tar -ztf got-${GOT_VERSION}.tar.gz | sed -e 's/^got-${GOT_VERSION}//' \
32 | sort > got-dist.txt.new
33 diff -u got-dist.txt got-dist.txt.new
34 rm got-dist.txt.new
36 tmpl:
37 ${MAKE} -C template
39 tmpl-regress:
40 ${MAKE} -C regress/template
42 webd: tmpl
43 ${MAKE} -C gotwebd
45 webd-install:
46 ${MAKE} -C gotwebd install
48 server:
49 ${MAKE} -C gotctl
50 ${MAKE} -C gotd
51 ${MAKE} -C gotsh
53 server-install:
54 ${MAKE} -C gotctl install
55 ${MAKE} -C gotd install
56 ${MAKE} -C gotsh install
58 server-regress:
59 ${MAKE} -C regress/gotd
61 .include <bsd.subdir.mk>