From 83b11a162dac833a6bb96cdf6836f25888c570b5 Mon Sep 17 00:00:00 2001 From: Philipp Matthias Hahn Date: Wed, 11 Jan 2012 23:14:23 +0100 Subject: [PATCH] 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 --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index ad4259bb..e0f560bc 100755 --- a/Makefile +++ b/Makefile @@ -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 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