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