Blob


1 SUBDIR = libexec got tog
2 .PHONY=release dist
4 .if make(regress) || make(obj) || make(clean)
5 SUBDIR += regress
6 .endif
8 .include "got-version.mk"
10 release: clean
11 sed -i -e "s/_RELEASE=No/_RELEASE=Yes/" got-version.mk
12 ${MAKE} dist
13 sed -i -e "s/_RELEASE=Yes/_RELEASE=No/" got-version.mk
15 dist: clean
16 mkdir /tmp/got-${GOT_VERSION}
17 pax -rw * /tmp/got-${GOT_VERSION}
18 find /tmp/got-${GOT_VERSION} -name obj -type d -delete
19 rm /tmp/got-${GOT_VERSION}/got-dist.txt
20 tar -C /tmp -zcf got-${GOT_VERSION}.tar.gz got-${GOT_VERSION}
21 rm -rf /tmp/got-${GOT_VERSION}
22 tar -ztf got-${GOT_VERSION}.tar.gz | sed -e 's/^got-${GOT_VERSION}//' \
23 > got-dist.txt.new
24 diff -u got-dist.txt got-dist.txt.new
25 rm got-dist.txt.new
27 .include <bsd.subdir.mk>