The real release 0.46 :-)
[awl.git] / Makefile
blob06804cecb078206e59c1724a181f830a519c90d9
1 #!/usr/bin/make -f
2 #
4 package=awl
5 version=$(shell cat VERSION)
7 all: built-docs
9 built-docs: docs/api/phpdoc.ini inc/*.php
10 phpdoc -c docs/api/phpdoc.ini || echo "WARNING: the docs could not be built"
11 touch built-docs
14 # Insert the current version number into AWLUtilities.php
16 inc/AWLUtilities.php: scripts/build-AWLUtilities.sh VERSION inc/AWLUtilities.php.in
17 scripts/build-AWLUtilities.sh <inc/AWLUtilities.php.in >inc/AWLUtilities.php
21 # Build a release .tar.gz file in the directory above us
23 release: built-docs
24 -ln -s . $(package)-$(version)
25 tar czf ../$(package)-$(version).tar.gz \
26 --no-recursion --dereference $(package)-$(version) \
27 $(shell git ls-files |grep -v '.git'|sed -e s:^:$(package)-$(version)/:) \
28 $(shell find $(package)-$(version)/docs/api/ ! -name "phpdoc.ini" )
29 rm $(package)-$(version)
31 clean:
32 rm -f built-docs
33 -find . -name "*~" -delete
35 clean-all: clean
36 -find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete
38 .PHONY: all clean release