Makefile.am 1.97 KB
Newer Older
eg's avatar
eg committed
1 2 3 4
# Makefile.am for STklos
#
#           Author: Erick Gallesio [eg@unice.fr]
#    Creation date: 11-Apr-2000 10:30 (eg)
eg's avatar
eg committed
5
# Last file update:  4-Jan-2006 14:49 (eg)
eg's avatar
eg committed
6 7 8 9 10 11 12 13 14 15 16

EXTRA_DIST   = 
SUBDIRS      =  @PCRE@ @GC@ @GMP@ src utils lib @GTKLOS@ @EXAMPLES@ \
	       extensions tests doc
SVN_URL      = @SVN_URL@/STklos
VERSION_TAG  = @PACKAGE@-@VERSION@
VERSION_BETA = $(VERSION_TAG)-beta

test:
	(cd tests; $(MAKE) test)

eg's avatar
eg committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
##prep-version: 
##	svn commit 
##	svn update
##	rm -rf /usr/tmp/$(VERSION_BETA)
##	svn export $(SVN_URL)/trunk /usr/tmp/$(VERSION_BETA)
##	svnclonedates `pwd` /usr/tmp/$(VERSION_BETA)
##
##beta: prep-version
##	( cd /usr/tmp; tar cvfz $(VERSION_BETA).tar.gz $(VERSION_BETA) )
##	ls -ls /usr/tmp/$(VERSION_BETA).tar.gz
##
##version: prep-version
##	-svn rm  $(SVN_URL)/tags/$(VERSION_TAG) -m ''
##	svn copy . $(SVN_URL)/tags/$(VERSION_TAG) -m ''
##	rm -rf /usr/tmp/$(VERSION_TAG)
##	cp -a /usr/tmp/$(VERSION_BETA) /usr/tmp/$(VERSION_TAG)
##	( cd /usr/tmp; tar cvfz $(VERSION_TAG).tar.gz $(VERSION_TAG) )
##	ls -ls /usr/tmp/$(VERSION_TAG).tar.gz
##
prep-version:
eg's avatar
eg committed
37
	hg commit -m "preparing version $(VERSION_TAG)"
eg's avatar
eg committed
38 39 40 41
	rm -rf /usr/tmp/$(VERSION_TAG) /usr/tmp/$(VERSION_BETA)
	hg clone . /usr/tmp/$(VERSION_TAG)
	rm -rf /usr/tmp/$(VERSION_TAG)/.hg
	hgclonedates `pwd` /usr/tmp/$(VERSION_TAG)
eg's avatar
eg committed
42 43

beta: prep-version
eg's avatar
eg committed
44
	( cd /usr/tmp; mv $(VERSION_TAG) $(VERSION_BETA);  \
eg's avatar
eg committed
45
	  tar cvfz $(VERSION_BETA).tar.gz $(VERSION_BETA) )
eg's avatar
eg committed
46 47
	ls -ls /usr/tmp/$(VERSION_BETA).tar.gz

eg's avatar
eg committed
48
version: prep-version
eg's avatar
eg committed
49
	hg tag $(VERSION_TAG)
eg's avatar
.  
eg committed
50 51 52
	( cd /usr/tmp; tar cvfz $(VERSION_TAG).tar.gz $(VERSION_TAG) )
	ls -ls /usr/tmp/$(VERSION_TAG).tar.gz

eg's avatar
eg committed
53 54 55 56 57 58 59 60 61 62 63

# oldversion: 
# 	svn commit 
# 	svn update
# 	-svn rm  $(SVN_URL)/tags/$(VERSION_TAG) -m ''
# 	svn copy . $(SVN_URL)/tags/$(VERSION_TAG) -m ''
# 	rm -rf /usr/tmp/$(VERSION_TAG)
# 	svn export $(SVN_URL)/tags/$(VERSION_TAG) /usr/tmp/$(VERSION_TAG)
# 	clonedates `pwd` /usr/tmp/$(VERSION_TAG)
# 	( cd /usr/tmp; tar cvfz $(VERSION_TAG).tar.gz $(VERSION_TAG) )
# 	ls -ls /usr/tmp/$(VERSION_TAG).tar.gz