Default type to 'resource' for privileges display.
[davical.git] / Makefile
blob9a62bdd442b4adfc9f14c5b8a21186f01810eabd
1 #!/usr/bin/make -f
4 package=davical
5 version=$(shell cat VERSION)
7 all: htdocs/always.php built-docs built-po
9 built-docs: docs/api/phpdoc.ini htdocs/*.php inc/*.php
10 phpdoc -c docs/api/phpdoc.ini || echo "NOTICE: Failed to build optional API docs"
11 touch built-docs
13 built-po: htdocs/always.php scripts/po/rebuild-translations.sh scripts/po/extract.pl po/*.po
14 scripts/po/rebuild-translations.sh
15 touch built-po
18 # Insert the current version number into always.php
20 htdocs/always.php: scripts/build-always.sh VERSION dba/davical.sql inc/always.php.in
21 scripts/build-always.sh <inc/always.php.in >htdocs/always.php
24 # Build a release .tar.gz file in the directory above us
26 release: built-docs VERSION
27 -ln -s . $(package)-$(version)
28 tar czf ../$(package)-$(version).tar.gz \
29 --no-recursion --dereference $(package)-$(version) \
30 $(shell git ls-files |grep -v '.git'|sed -e s:^:$(package)-$(version)/:) \
31 $(shell find $(package)-$(version)/docs/api/ ! -name "phpdoc.ini" )
32 rm $(package)-$(version)
34 clean:
35 rm -f built-docs built-po
36 -find . -name "*~" -delete
38 clean-all: clean
39 -find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete
41 .PHONY: all clean release