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
SUBDIR = libexec got tog
.PHONY: release dist
.if make(regress) || make(obj) || make(clean) || make(release)
SUBDIR += regress
# not part of original SUBDIR, since we don't build gotweb by default and
# the port will be split into sub packages
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 MAKEWEB=Yes
web-install:
${MAKE} -C gotweb install MAKEWEB=Yes
.include <bsd.subdir.mk>