From 318bef6fc5b8dfe3595daecf0f73d9502e88df93 Mon Sep 17 00:00:00 2001 From: Geoffrey Frogeye Date: Tue, 3 Mar 2015 00:09:45 +0100 Subject: [PATCH] Correct redirs generation in Makefile --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 564d811..c84cd6d 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,12 @@ +REDIRS=$(shell cd pages; echo *.php) + all: redirs cd img; make -redirs: - for i in $$(cd pages; echo *.php); do echo "" > $$i; done +%.php: pages/%.php + echo "" > $@ + +redirs: $(REDIRS) clean: cd img; make clean -- libgit2 0.21.2