Commit 318bef6fc5b8dfe3595daecf0f73d9502e88df93

Authored by Geoffrey PREUD'HOMME
1 parent aa5e1201

Correct redirs generation in Makefile

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
  1 +REDIRS=$(shell cd pages; echo *.php)
  2 +
1 all: redirs 3 all: redirs
2 cd img; make 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 clean: 11 clean:
8 cd img; make clean 12 cd img; make clean