Makefile 252 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 all: redirs cd img; make redirs: for i in $$(cd pages; echo *.php); do echo "<?php require('index.php') // AUTOGEN ?>" > $$i; chmod 755 $$i; done clean: cd img; make clean for i in *.php; do if grep -q "// AUTOGEN" $$i; then rm -rf $$i; fi; done