Makefile.am 1.52 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)
5
# Last file update:  3-Jul-2018 18:11 (eg)
eg's avatar
eg committed
6

7
EXTRA_DIST   =
8 9 10
# INSTDIRS contains the dirs which need to be installed
INSTDIRS     =  @GC@ src utils lib examples pkgman tests doc
SUBDIRS      =  @PCRE@ @GMP@ @FFI@ $(INSTDIRS)
eg's avatar
eg committed
11 12 13
VERSION_TAG  = @PACKAGE@-@VERSION@
VERSION_BETA = $(VERSION_TAG)-beta

14 15 16
.PHONY:  test push 

install:
17 18 19 20 21
	@for i in $(INSTDIRS) ;do \
	  echo "***** Installing directory $$i"; \
	  (cd $$i && $(MAKE) $(AM_MAKEFLAGS) install); \
	done

Erick's avatar
Erick committed
22
test: all
eg's avatar
eg committed
23 24
	(cd tests; $(MAKE) test)

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 53 54 55 56 57
push: _git-pre-push
	git push

_git-pre-push:
	./utils/make-push-id
	git add src/extraconf.h.in
	git commit --amend


#commit-beta:
#	eval "expr `cat .beta-number` + 1" > .beta-number
#	hg commit -m "Preparing version $(VERSION_BETA)`cat .beta-number`"
#
#commit-version:
#	echo 0 > .beta-number
#	hg commit -m "Commit version $(VERSION_TAG)"
#
#prep-version:
#	rm -rf /tmp/$(VERSION_TAG) /tmp/$(VERSION_BETA)* /tmp/beta
#	hg clone . /tmp/$(VERSION_TAG)
#	rm -rf /tmp/$(VERSION_TAG)/.hg*
#	hgclonedates `pwd` /tmp/$(VERSION_TAG)
#
#beta: commit-beta prep-version
#	(mv /tmp/$(VERSION_TAG) /tmp/$(VERSION_BETA)`cat .beta-number`;  \
#	 echo "$(VERSION_BETA)`cat .beta-number`" > /tmp/beta ; \
#	 cd /tmp; tar cvfz `cat beta`.tar.gz `cat beta` )
#	ls -ls /tmp/$(VERSION_BETA)*.tar.gz
#
#version: commit-version prep-version
#	hg tag $(VERSION_TAG)
#	( cd /tmp; tar cvfz $(VERSION_TAG).tar.gz $(VERSION_TAG) )
#	ls -ls /tmp/$(VERSION_TAG).tar.gz