Here's a real makefile that checks what you've changed before

regenerating. If you changed something in /config, everything is
regenerated, if you change something in /data, only the touched files are
rebuilt. I guess this is one of the cases where double colons are
needed ...

To use, just run "make" in the e directory.


SVN revision: 4915
This commit is contained in:
cpk 2001-07-03 01:09:57 +00:00 committed by cpk
parent daf0a6b7a4
commit 7e58f990a4
1 changed files with 18 additions and 0 deletions

18
e/Makefile Normal file
View File

@ -0,0 +1,18 @@
configfiles = config/bottom \
config/config \
config/end \
config/nav \
config/start \
config/title \
config/top
srcdatafiles = data/*.html
dstdatafiles = $(subst data,pages,$(srcdatafiles))
all: $(dstdatafiles)
$(dstdatafiles):: pages/%.html: data/%.html
s/make $(subst pages/,,$@)
$(dstdatafiles):: $(configfiles)
s/make