Blame view

Makefile 260 Bytes
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
1
2
  REDIRS=$(shell cd pages; echo *.php)
  
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
3
  all: redirs
d6895efe   Geoffrey PREUD'HOMME   Fix base Makefile
4
  	cd img; make
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
5
  
318bef6f   Geoffrey PREUD'HOMME   Correct redirs ge...
6
7
8
9
  %.php: pages/%.php
  	echo "<?php require('index.php') // AUTOGEN ?>" > $@
  
  redirs: $(REDIRS)
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
10
  
0f325835   Geoffrey PREUD'HOMME   Make clean base
11
12
  clean:
  	cd img; make clean
635819a5   Geoffrey PREUD'HOMME   Fake mod rewrite
13
  	for i in *.php; do if grep -q "// AUTOGEN" $$i; then rm -rf $$i; fi; done