[XMLDocument] Add helper for CardDAVElement.
[awl.git] / Makefile
blob7d4a40871d27f9234ceca68b3327e6a395ce61b3
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 # Build a release .tar.gz file in the directory above us
16 release: built-docs
17 -ln -s . $(package)-$(version)
18 tar czf ../$(package)-$(version).tar.gz \
19 --no-recursion --dereference $(package)-$(version) \
20 $(shell git ls-files |grep -v '.git'|sed -e s:^:$(package)-$(version)/:) \
21 $(shell find $(package)-$(version)/docs/api/ ! -name "phpdoc.ini" )
22 rm $(package)-$(version)
24 clean:
25 rm -f built-docs
26 -find . -name "*~" -delete
28 clean-all: clean
29 -find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete
31 .PHONY: all clean release