ffe444f8d9
git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@73 3f5042e3-fb1d-0410-be18-d6ca2573e517
26 lines
660 B
Makefile
26 lines
660 B
Makefile
# action is snap or all
|
|
PKGDIR=/usr/local/pkg
|
|
|
|
all: maui326
|
|
|
|
maui326:
|
|
ACTION=snap ; \
|
|
PKG=maui ; \
|
|
VERSION=3.2.6 ; \
|
|
PATCH=p18 ; \
|
|
BASEDIR=$$PKG-$$VERSION$$PATCH ; \
|
|
cd $$BASEDIR ; \
|
|
for i in src/[ms]* include; do \
|
|
(cd $$i;mkheader.pl ./header.tmpl ./header.cfg $(PKGDIR)/$$BASEDIR/$$i *.[ch]); \
|
|
done ; \
|
|
for i in contrib docs; do \
|
|
(cd $$i;cp -r * $(PKGDIR)/$$BASEDIR/$$i); \
|
|
(cd $(PKGDIR)/$$BASEDIR/$$i;find . -name CVS -exec rm -rf {} \; 2>/dev/null) ; \
|
|
done ; \
|
|
cd .. ; \
|
|
TMPFILE=$(PKGDIR)/tmp/$$BASEDIR.tar.gz; \
|
|
rm -f $$TMPFILE; \
|
|
(cd $(PKGDIR);tar -czf $$TMPFILE $$BASEDIR) ;\
|
|
./copyfiles maui $$VERSION $$PATCH $$TMPFILE $$ACTION
|
|
|