sunet/Makefile

46 lines
1.1 KiB
Makefile
Raw Normal View History

2000-09-26 11:32:01 -04:00
SHELL = /bin/sh
2003-04-22 08:47:27 -04:00
version_id = 2.0
distname = sunet-$(version_id)
distdir = /tmp
2003-04-22 08:56:09 -04:00
DISTFILES = COPYING README RELEASE \
2003-04-22 08:47:27 -04:00
Makefile packages.scm \
2003-04-22 09:57:19 -04:00
start-web-server start-extended-web-server \
2003-04-22 08:47:27 -04:00
httpd/*.scm ftpd/*.scm lib/*.scm \
doc/man.pdf doc/html \
2003-04-22 09:57:19 -04:00
doc/latex/*.tex doc/latex/*.sty doc/latex/*.t2p doc/latex/*.hdir \
web-server
2003-04-22 08:47:27 -04:00
sunet-$(version_id).tar.gz:
.PHONY: dist
dist:
cd doc/latex && $(MAKE) html
cd doc/latex && $(MAKE) man.pdf && cp -p man.pdf ..
2003-04-22 09:57:19 -04:00
cd web-server/root/htdocs && ln -sf ../../../doc/html sunet-manual
2003-04-22 08:47:27 -04:00
distname=$(distname) && \
distfile=$(distdir)/$$distname.tar.gz && \
if [ -d $(distdir) ] && \
[ -w $$distfile -o -w $(distdir) ]; then \
rm -f $$distname && \
ln -s . $$distname && \
files='' && \
for i in $(DISTFILES); do \
if [ "$$i" != "c/sysdep.h" ]; then \
files="$$files $$distname/$$i"; \
fi \
done && \
2003-04-22 09:57:19 -04:00
tar --exclude .cvsignore --exclude CVS -cf - $$files | \
2003-04-22 08:47:27 -04:00
gzip --best >$$distfile && \
rm $$distname; \
else \
echo "Can't write $$distfile" >&2; \
exit 1; \
fi