all: Pub/.copied VERNUM=6.4 PREVNUM=6.3 VER=v${VERNUM} PREV=v${PREVNUM} SOURCES=makeindex.php.txt hilbert.py hilbert_test.py hilbert_pic.py \ Makefile MOORE=moore/index.html moore/hilbert.c moore/hilbert.h DIFFS=old/v4_${VER}_diff.txt old/${PREV}_${VER}_diff.txt OLDPUB=${DIFFS} old/makeindex.php.txt old/index.html PUBFILES=${SOURCES} index.html hilbert_thumb.gif hilbert_pic.pdf old/v4_${VER}_diff.txt: old/${VER}/.copied (cd old; diff -rc v4 ${VER} >v4_${VER}_diff.txt; true) old/${PREV}_${VER}_diff.txt: old/${VER}/.copied (cd old; diff -rc ${PREV} ${VER} >${PREV}_${VER}_diff.txt; true) old/${VER}/.copied: ${SOURCES} mkdir old/${VER} || true cp ${SOURCES} old/${VER} touch old/${VER}/.copied old/index.html: ${DIFFS} old/makeindex.php.txt (cd old; chmod u+w index.html; php makeindex.php.txt ${VER} >index.html ) chmod a-w old/index.html Pub/.copied: ${PUBFILES} ${OLDPUB} ${MOORE} chmod u+w Pub/index.html Pub/old/index.html cp ${PUBFILES} Pub cp ${OLDPUB} Pub/old cp ${MOORE} Pub/moore touch Pub/.copied index.html: ${SOURCES} ${DIFFS} chmod u+w index.html touch .lastchange # sensed by makeindex.php.txt php makeindex.php.txt ${VERNUM} >index.html chmod a-w index.html hilbert_pic.pdf: hilbert.py hilbert_pic.py hilbert_pic.py >hilbert_pic.pdf