summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrien Nader <adrien@notk.org>2015-01-15 22:33:43 +0100
committerAdrien Nader <adrien@notk.org>2015-01-15 22:33:43 +0100
commit2e0ae5aaf165d483c4fc0a109e734763a3edbf7d (patch)
treea7923a0699ef8aade14439dff107ef5daaafdcb9
parentc5819101a571aba6f12063929f3d293f9485c41a (diff)
web: take advantage of gmake's order-only-prerequisite to reduce rebuilds.
-rw-r--r--web/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/Makefile b/web/Makefile
index b9ff90b..8483518 100644
--- a/web/Makefile
+++ b/web/Makefile
@@ -2,20 +2,20 @@ include ../Makefile.data
FILES = index support documentation download news comparison packages
-temp/screenshot.png: temp screenshot-windows.png
+temp/screenshot.png: screenshot-windows.png | temp
pngnq -L < screenshot-windows.png > temp/screenshot.png
advpng -h >/dev/null && advpng -z -4 temp/screenshot.png
-temp/%.png: temp %.png
+temp/%.png: %.png | temp
pngnq -L < $*.png > $@
advpng -h >/dev/null && advpng -z -4 $@
-all web: temp $(patsubst %,temp/%.html,$(FILES)) temp/screenshot.png temp/install_mirror_path.png
+all web: $(patsubst %,temp/%.html,$(FILES)) temp/screenshot.png temp/install_mirror_path.png
temp:
mkdir -p temp
-temp/%.html: temp footer.html header.html head.php %.php style.css ../Makefile.data
+temp/%.html: footer.html header.html head.php %.php style.css ../Makefile.data | temp
sed 's/@@VERSION@@/$(VERSION)/g' "$*.php" \
| php \
> "$@"