-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (21 loc) · 846 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
VERSION = $(shell egrep 'defconst[ ]*xslt-process-version' lisp/xslt-process.el | awk '{print $$NF}')
all clean distclean:
for d in java etc doc; do \
(cd $$d; make VERSION=$(VERSION) $@); \
done
dist:
@(repository=`cat CVS/Root`; \
export CVSROOT=$$repository; \
rm -rf /tmp/xslt-process-$(VERSION); \
cd /tmp; \
cvs checkout -d xslt-process-$(VERSION) xslt-process; \
cd /tmp/xslt-process-$(VERSION); \
make all; make clean; \
find . -name 'CVS' -prune -exec rm -rf {} \; ;\
cd /tmp; \
tar zcf xslt-process-$(VERSION).tar.gz xslt-process-$(VERSION); \
rm -rf /tmp/xslt-process-$(VERSION); \
tag=release_`echo $(VERSION) | sed 's/\./_/g'`; \
echo "Tagging the repository with tag '$$tag'"; \
cvs -d $$repository rtag -F $$tag xslt-process; \
echo "The distribution is in /tmp/xslt-process-$(VERSION).tar.gz")