makefile
1.5 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
######### Main Makefile for the sctk #############
#### Creation Date: Aug 7, 1997
#
# version: 0.3
# 2006-02-20 jerome
# [/] make check, will output the uname
#
# version: 0.2
# 2006-01-11 jerome
# [/] casper to gaston for CVS
MAKE=make
.PHONY : install
all clean install config:
(mkdir -p bin)
(cd src; $(MAKE) $@)
.PHONY : doc
doc:
(cd doc; $(MAKE) all)
distclean:
(rm -f bin/*)
(cd src; $(MAKE) $@)
dist:
@ echo "Make the distribution"
@ echo "sctk-"`grep Version: README | head -1 | perl -pe 's/.*Version:\s+//; s/\s+\$$//; s/\s+/_/g'` > .fname
@ echo "Building a release version" `cat .fname`
@ echo "Verifying and up-to-date CVS copy"
@ cvs -d gaston.ncsl.nist.gov:/home/sware/cvs up
@ cvs -d gaston.ncsl.nist.gov:/home/sware/cvs co -d `cat .fname` sctk
@ echo "Building the TAR file"
@ echo `cat .fname`"-"`date -u +%Y%m%d-%H%M`"Z.tar.bz2" > .distname
@ find `cat .fname` -name "._*" -delete
@ tar jcf `cat .distname` --exclude CVS --exclude .svn --exclude TODO `cat .fname`
@ md5 `cat .distname` > `cat .distname`.md5
@ (cd `cat .fname`; make config all check install doc)
@ rm -rf `cat .fname` .fname .distname
cvs-tag-current-distribution:
@ echo "Tagging the current CVS for distribution '"`grep Version: README | head -1 | perl -pe 's/.*Version:\s+/release-/; s/\s+\$$//; s/\s+/_/g; s/\./-/g'`"'"
@ cvs -d gaston:/home/sware/cvs tag `grep Version: README | head -1 | perl -pe 's/.*Version:\s+/release-/; s/\s+\$$//; s/\s+/_/g; s/\./-/g'`
check:
@ uname -a
(cd src; $(MAKE) $@)