5 version
=$(shell cat VERSION
)
9 built-docs
: docs
/api
/phpdoc.ini inc
/*.php
10 phpdoc
-c docs
/api
/phpdoc.ini || echo
"WARNING: the docs could not be built"
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
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
)
33 -find .
-name
"*~" -delete
36 -find docs
/api
/* ! -name
"phpdoc.ini" ! -name
".gitignore" -delete
38 .PHONY
: all clean release