webroot := /var/www include $(webroot)/makefile.generic scoredirs=$(shell find -mindepth 2 -name makefile | sed 's,makefile,,') all: $(makefile) @for dir in $(scoredirs) ; do \ /bin/cp -f README.html $$dir ; \ (cd $$dir ; make) ; \ done #makefile: $(dirs) # for dir in `find . -type d` ; do (cd $$dir ; yes n | cp -i /var/www/tmp/makefile . ) ; done sections: $(dirs) for dir in `find . -type d` ; do (cd $$dir ; mv -i .source/HEADER.wml .section.html ) ; done