Viewing file on branch master
| 1 | BUILDDIR=../.. |
| 2 | DPP?= dpp |
| 3 | |
| 4 | SRC= index.html \ |
| 5 | services/index.html \ |
| 6 | users/index.html \ |
| 7 | cgi-bin/users \ |
| 8 | docs/index.html \ |
| 9 | docs/git/index.html \ |
| 10 | docs/sites/index.html |
| 11 | |
| 12 | TEMPLATE=template/bar.html \ |
| 13 | template/foot.html \ |
| 14 | template/head.html \ |
| 15 | template/redirect.html |
| 16 | |
| 17 | EXEC= cgi-bin/users |
| 18 | |
| 19 | OUT= ${SRC:%=${BUILDDIR}/%} |
| 20 | |
| 21 | |
| 22 | all: after |
| 23 | |
| 24 | after: ${OUT} |
| 25 | chmod +x ${BUILDDIR}/${EXEC} |
| 26 | |
| 27 | ${BUILDDIR}/%: % ${TEMPLATE} |
| 28 | @mkdir -p ${@D} |
| 29 | DPP_BLOCK='!!' ${DPP} <$< >$@ |
| 30 | |
| 31 | .PHONY: all |
| 32 | |