5 version
=$(shell cat VERSION
)
7 default
: inc
/always.php
9 all: inc
/always.php built-docs
11 built-docs
: phpdoc.ini html
/*.php inc
/*.php inc
/action
/process
/*.php inc
/action
/screen
/*.php inc
/browse
/*.php inc
/edit
/*.php inc
/view
/*.php
16 # Insert the current version number into always.php
18 inc
/always.php
: VERSION inc
/in.always.php
19 sed
-e
"/^ *.c->version_string *= *'[^']*' *;/ s/^ *.c->version_string *= *'[^']*' *;/\$$c->version_string = '`head -n1 VERSION`';/" <inc
/in.always.php
>inc
/always.php
22 # Build a release .tar.gz file in the directory above us
24 release
: built-docs inc
/always.php
25 -ln
-s .
$(package
)-$(version
)
26 tar czf ..
/$(package
)-$(version
).
tar.gz \
27 --no-recursion
--dereference
$(package
)-$(version
) \
28 $(shell git ls-files |grep
-v
'.git'|sed
-e s
:^
:$(package
)-$(version
)/:) \
29 $(shell find
$(package
)-$(version
)/docs
/api
/ ! -name
"phpdoc.ini" )
30 rm $(package
)-$(version
)
34 -find docs
/api
/* ! -name
"phpdoc.ini" ! -name
".gitignore" -delete
35 -find .
-name
"*~" -delete
38 .PHONY
: all clean release