Show Makefile syntax highlighted
# Created by Tjl, getting help from Schwebel's PDL WWW Makefile
# Updated by Ajk for Savannah www setup
ROOT=.
FRAMEWORK=$(wildcard $(ROOT)/templates/*)
INC=-Itemplates
SUBDIRS=FAQ documentation
.SUFFIXES: .html .wml
GZZDOCS ?= ../gzz/Documentation
%.html: %.wml $(FRAMEWORK)
wml $(INC) $< -o $@
rm -f $@.fixed
all: almost-all
(cd $(GZZDOCS)/UsersGuide; $(MAKE); $(MAKE) ug-ns4.html;)
(cd $(GZZDOCS)/manuscripts/CyberText; $(MAKE); $(MAKE) ct-ns4.html;)
(cd $(GZZDOCS)/DesignProblems; $(MAKE); $(MAKE) dp-ns4.html;)
(cd $(GZZDOCS)/Spec; $(MAKE); $(MAKE) zzspec-ns4.html;)
(cd $(GZZDOCS)/Gentle_Introduction; $(MAKE); $(MAKE) gi-ns4.html;)
(cd $(GZZDOCS)/Glossary; $(MAKE); $(MAKE) gl-ns4.html;)
rm -f ug ct dp spec gi gl *.png
ln -s $$PWD/$(GZZDOCS)/UsersGuide ug
ln -s $$PWD/$(GZZDOCS)/manuscripts/CyberText ct
ln -s $$PWD/$(GZZDOCS)/DesignProblems dp
ln -s $$PWD/$(GZZDOCS)/Spec spec
ln -s $$PWD/$(GZZDOCS)/Gentle_Introduction gi
ln -s $$PWD/$(GZZDOCS)/Glossary gl
ln -s $$PWD/$(GZZDOCS)/*.png .
almost-all: index.html docs.html faq.html download.html cvs.html starting.html mail.html snaps.html subdirs nutshell.html bugs.html
clean:
rm -f *.html *.fixed setup
rm -rf target
subdirs:
USERNAME ?= tjl
setup:
rm -rf target
cvs -z3 -d$(USERNAME)@subversions.gnu.org:/webcvs/ co -d target non-gnu/gzz/
touch $@
mv : setup all
rm -rf target-new
mkdir target-new
cp -rL *.css *.html *.jpg *.png ug ct dp spec gi gl target-new
rm -rf `find target-new -name CVS -type d`
cp -r target-new/* target
@echo "Remember to commit."
terse-mv: almost-all
rm -rf target-new
mkdir target-new
cp -rL *.css *.html *.jpg *.png target-new/
rm -rf `find target-new -name CVS -type d`
cp -r target-new/* target
@echo "Remember to commit."
.PHONY: terse-mv
See more files for this project here