2000-09-26 11:32:01 -04:00
|
|
|
SHELL = /bin/sh
|
|
|
|
|
2004-02-02 05:26:26 -05:00
|
|
|
version_id = 2.1
|
2003-04-22 08:47:27 -04:00
|
|
|
|
|
|
|
distname = sunet-$(version_id)
|
|
|
|
|
|
|
|
distdir = /tmp
|
|
|
|
|
2004-05-12 03:29:45 -04:00
|
|
|
DISTFILES = COPYING README RELEASE INSTALL pkg-def.scm \
|
2004-05-05 12:44:02 -04:00
|
|
|
scheme/packages.scm \
|
2004-02-03 08:51:51 -05:00
|
|
|
scheme/httpd/*.scm scheme/httpd/surflets/*.scm \
|
|
|
|
scheme/ftpd/*.scm scheme/lib/*.scm \
|
|
|
|
doc/pdf/sunet.pdf doc/html \
|
|
|
|
doc/latex/*.tex doc/latex/*.sty doc/latex/*.t2p doc/latex/*.hdir \
|
2003-04-22 09:57:19 -04:00
|
|
|
web-server
|
2003-04-22 08:47:27 -04:00
|
|
|
|
|
|
|
sunet-$(version_id).tar.gz:
|
|
|
|
|
|
|
|
.PHONY: dist
|
|
|
|
|
|
|
|
dist:
|
|
|
|
cd doc/latex && $(MAKE) html
|
2004-02-02 05:26:26 -05:00
|
|
|
cd doc/latex && $(MAKE) man.pdf
|
|
|
|
cd web-server/root/htdocs
|
|
|
|
mkdir -p doc/pdf
|
|
|
|
cp doc/latex/man.pdf doc/pdf/sunet.pdf
|
|
|
|
mv doc/html/man.html doc/html/index.html
|
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
|
|
|
|
|
2002-05-30 10:05:52 -04:00
|
|
|
|
2004-02-17 10:07:36 -05:00
|
|
|
.PHONY: tags
|
|
|
|
tags:
|
|
|
|
find . -name "*.scm" | etags -
|