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 += gotweb
11 .endif
13 .include "got-version.mk"
15 release: clean
16 sed -i -e "s/_RELEASE=No/_RELEASE=Yes/" got-version.mk
17 ${MAKE} dist
18 sed -i -e "s/_RELEASE=Yes/_RELEASE=No/" got-version.mk
20 dist: clean
21 mkdir /tmp/got-${GOT_VERSION}
22 pax -rw * /tmp/got-${GOT_VERSION}
23 find /tmp/got-${GOT_VERSION} -name obj -type d -delete
24 rm /tmp/got-${GOT_VERSION}/got-dist.txt
25 tar -C /tmp -zcf got-${GOT_VERSION}.tar.gz got-${GOT_VERSION}
26 rm -rf /tmp/got-${GOT_VERSION}
27 tar -ztf got-${GOT_VERSION}.tar.gz | sed -e 's/^got-${GOT_VERSION}//' \
28 | sort > got-dist.txt.new
29 diff -u got-dist.txt got-dist.txt.new
30 rm got-dist.txt.new
32 web:
33 ${MAKE} -C gotweb
35 web-install:
36 ${MAKE} -C gotweb install
38 .include <bsd.subdir.mk>