mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Make several targets .PHONY
If a file with the name of the target would exist, re-building would fail. Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
45eb571c15
commit
1e04f898e5
8
Makefile
8
Makefile
@ -10,8 +10,10 @@ snapshot : gitrev = $(shell git rev-parse --short HEAD)
|
|||||||
snapshot : version = $(majorversion)-git$(gitrev)
|
snapshot : version = $(majorversion)-git$(gitrev)
|
||||||
snapshot : issnapshot = 1
|
snapshot : issnapshot = 1
|
||||||
|
|
||||||
|
.PHONY: nodocs
|
||||||
nodocs: htdocs/always.php built-po
|
nodocs: htdocs/always.php built-po
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
all: htdocs/always.php built-docs built-po
|
all: htdocs/always.php built-docs built-po
|
||||||
|
|
||||||
built-docs: docs/api/phpdoc.ini htdocs/*.php inc/*.php docs/translation.rst
|
built-docs: docs/api/phpdoc.ini htdocs/*.php inc/*.php docs/translation.rst
|
||||||
@ -32,6 +34,7 @@ htdocs/always.php: scripts/build-always.sh VERSION dba/davical.sql inc/always.ph
|
|||||||
#
|
#
|
||||||
# Build a release .tar.gz file in the directory above us
|
# Build a release .tar.gz file in the directory above us
|
||||||
#
|
#
|
||||||
|
.PHONY: release
|
||||||
release: built-docs VERSION
|
release: built-docs VERSION
|
||||||
-ln -s . $(package)-$(version)
|
-ln -s . $(package)-$(version)
|
||||||
sed 's:@@VERSION@@:$(majorversion):' davical.spec.in | \
|
sed 's:@@VERSION@@:$(majorversion):' davical.spec.in | \
|
||||||
@ -45,15 +48,16 @@ release: built-docs VERSION
|
|||||||
davical.spec
|
davical.spec
|
||||||
rm $(package)-$(version)
|
rm $(package)-$(version)
|
||||||
|
|
||||||
|
.PHONY: snapshot
|
||||||
snapshot: release
|
snapshot: release
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f built-docs built-po
|
rm -f built-docs built-po
|
||||||
-find . -name "*~" -delete
|
-find . -name "*~" -delete
|
||||||
-rm docs/translation.pdf
|
-rm docs/translation.pdf
|
||||||
-rm davical.spec
|
-rm davical.spec
|
||||||
|
|
||||||
|
.PHONY: clean-all
|
||||||
clean-all: clean
|
clean-all: clean
|
||||||
-find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete
|
-find docs/api/* ! -name "phpdoc.ini" ! -name ".gitignore" -delete
|
||||||
|
|
||||||
.PHONY: all clean release
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user