aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRafael Laboissiere <rafael@laboissiere.net>2015-11-11 14:29:43 -0200
committerRafael Laboissiere <rafael@laboissiere.net>2015-11-11 14:33:18 -0200
commita62f29c36d7a6eb0e3570efcef4adb80030880e2 (patch)
treec9251085d2091a087bbe628159bf3b15f4518c80 /Makefile
parent1bf4625e50c2ad051f9458064f8cff4dc5662f0c (diff)
Build files in a separate Makefile rule
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e16a88b..ee53e5c 100644
--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,11 @@ REPODATA = repo/db repo/dists repo/pool
REPOHOST = www.cefala.org
USER = rlaboiss
+build-stamp: $(BUILD)
+ touch build-stamp
+
.PHONY: install
-install: $(BUILD)
+install: build-stamp
mkdir -p $(WWWDIR)
chown -R '$(USER):$(USER)' $(WWWDIR)
install --mode=644 www/$(INDEX) www/$(GPGKEY) $(WWWDIR)
@@ -22,7 +25,7 @@ install: $(BUILD)
.PHONY: clean
clean:
- rm -f $(BUILD)
+ rm -f $(BUILD) build-stamp
.PHONY: install-repo
install-repo: