Use automatic Makefile variables

Instead of repeating the file names, use the automatic variables for the
target and the first source file.

Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
Philipp Matthias Hahn 2012-01-11 23:14:23 +01:00 committed by Andrew McMillan
parent 1e04f898e5
commit 83b11a162d

View File

@ -19,17 +19,17 @@ all: htdocs/always.php built-docs built-po
built-docs: docs/api/phpdoc.ini htdocs/*.php inc/*.php docs/translation.rst
phpdoc -c docs/api/phpdoc.ini || echo "NOTICE: Failed to build optional API docs"
rst2pdf docs/translation.rst || echo "NOTICE: Failed to build ReST docs"
touch built-docs
touch $@
built-po: htdocs/always.php scripts/po/rebuild-translations.sh po/*.po
scripts/po/rebuild-translations.sh
touch built-po
touch $@
#
# Insert the current version number into always.php
#
htdocs/always.php: scripts/build-always.sh VERSION dba/davical.sql inc/always.php.in
scripts/build-always.sh <inc/always.php.in >htdocs/always.php
htdocs/always.php: inc/always.php.in scripts/build-always.sh VERSION dba/davical.sql
scripts/build-always.sh <$< >$@
#
# Build a release .tar.gz file in the directory above us