comparison Makefile @ 302:6f1aaf5309c7

Merging in latest release
author Dominic Cleal <dominic@computerkb.co.uk>
date Sun, 21 Dec 2008 23:53:28 +0000
parents eba6872a5309
children
comparison
equal deleted inserted replaced
285:05ef582dfa3b 302:6f1aaf5309c7
11 11
12 # 12 #
13 # Only used to build distribution tarballs. 13 # Only used to build distribution tarballs.
14 # 14 #
15 DIST_PREFIX = ${TMP} 15 DIST_PREFIX = ${TMP}
16 VERSION = 3.2 16 VERSION = 3.4
17 BASE = chronicle 17 BASE = chronicle
18 18
19 19
20 # 20 #
21 # Installation prefix, useful for the Debian package. 21 # Installation prefix, useful for the Debian package.
42 @find . -name '.#*' -exec rm \{\} \; 42 @find . -name '.#*' -exec rm \{\} \;
43 @find . -name '*~' -exec rm \{\} \; 43 @find . -name '*~' -exec rm \{\} \;
44 @find . -name '*.1' -exec rm \{\} \; 44 @find . -name '*.1' -exec rm \{\} \;
45 @find . -name '*.bak' -exec rm \{\} \; 45 @find . -name '*.bak' -exec rm \{\} \;
46 @find . -name '*.tmp' -exec rm \{\} \; 46 @find . -name '*.tmp' -exec rm \{\} \;
47 @if [ -e .version ]; then rm -f .version; fi
47 @if [ -d comments ]; then rm -rf comments; fi 48 @if [ -d comments ]; then rm -rf comments; fi
48 @if [ -d output ]; then rm -rf output; fi 49 @if [ -d output ]; then rm -rf output; fi
49 @if [ -e build-stamp ]; then rm -f build-stamp; fi 50 @if [ -e build-stamp ]; then rm -f build-stamp; fi
50 @if [ -e debian/chronicle.debhelper.log ]; then rm debian/chronicle.debhelper.log; fi 51 @if [ -e debian/chronicle.debhelper.log ]; then rm debian/chronicle.debhelper.log; fi
51 52
92 cd $(DIST_PREFIX) && tar -cvf $(DIST_PREFIX)/$(BASE)-$(VERSION).tar $(BASE)-$(VERSION)/ 93 cd $(DIST_PREFIX) && tar -cvf $(DIST_PREFIX)/$(BASE)-$(VERSION).tar $(BASE)-$(VERSION)/
93 gzip $(DIST_PREFIX)/$(BASE)-$(VERSION).tar 94 gzip $(DIST_PREFIX)/$(BASE)-$(VERSION).tar
94 mv $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz . 95 mv $(DIST_PREFIX)/$(BASE)-$(VERSION).tar.gz .
95 rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION) 96 rm -rf $(DIST_PREFIX)/$(BASE)-$(VERSION)
96 gpg --armour --detach-sign $(BASE)-$(VERSION).tar.gz 97 gpg --armour --detach-sign $(BASE)-$(VERSION).tar.gz
98 echo $(VERSION) > .version
99
97 100
98 101
99 # 102 #
100 # Tidy the code 103 # Tidy the code
101 # 104 #
102 tidy: 105 tidy:
103 if [ -x /usr/bin/perltidy ]; then \ 106 if [ -x ~/bin/perltidy ]; then \
104 perltidy -b -nt -bt=2 -sbt=1 -bl -mbl=3 -sbl -bbs -bbb -anl -lp bin/chronicle ;\ 107 ~/bin/perltidy ./bin/chronicle ./cgi-bin/comments.cgi \
105 perltidy -b -nt -bt=2 -sbt=1 -bl -mbl=3 -sbl -bbs -bbb -anl -lp cgi-bin/comments.cgi \
106 ; fi 108 ; fi
107 109
108 110
109 # 111 #
110 # Run the test suite. 112 # Run the test suite.