aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-04-05 19:59:49 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-04-05 20:06:58 +0200
commit42b460ca83000c2cdd36fb0ea90deade7072276d (patch)
tree578f7479fbc12e0890ea6fa765d341f4c9e13ef1
parent0836f2cb8b9157df48cb1faacd98c099fd8dfd40 (diff)
downloadwww.replicant.us-42b460ca83000c2cdd36fb0ea90deade7072276d.tar.gz
www.replicant.us-42b460ca83000c2cdd36fb0ea90deade7072276d.tar.bz2
www.replicant.us-42b460ca83000c2cdd36fb0ea90deade7072276d.zip
Makefile: fix phony targets
Without that fix, after modifying a php file and typing make, the corresponding html files are not regenerated. This can be really problematic for contributors that are not familiar with Makefiles as the behavior was completely counter intuitive. This fixes the issue and restores the expected behavior. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7fc2e82..1f745e4 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ INSTALL_DIRECTORIES = \
js \
library \
+.PHONY: all
all: $(TARGETS)
$(DESTDIR):
@@ -23,10 +24,12 @@ $(DESTDIR):
%.html: %.php
php -f $< | sed 's#\.php#\.html#g' > $@
+.PHONY: clean
clean:
rm -f $(TARGETS)
rm -f cache/*.spc
+.PHONY: install
install: $(DESTDIR) all
install -m644 $(TARGETS) -t $(DESTDIR)
cp -a $(INSTALL_DIRECTORIES) $(DESTDIR)