Commit 318bef6fc5b8dfe3595daecf0f73d9502e88df93
1 parent
aa5e1201
Correct redirs generation in Makefile
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
Makefile
1 | +REDIRS=$(shell cd pages; echo *.php) | |
2 | + | |
1 | 3 | all: redirs |
2 | 4 | cd img; make |
3 | 5 | |
4 | -redirs: | |
5 | - for i in $$(cd pages; echo *.php); do echo "<?php require('index.php') // AUTOGEN ?>" > $$i; done | |
6 | +%.php: pages/%.php | |
7 | + echo "<?php require('index.php') // AUTOGEN ?>" > $@ | |
8 | + | |
9 | +redirs: $(REDIRS) | |
6 | 10 | |
7 | 11 | clean: |
8 | 12 | cd img; make clean | ... | ... |