diff options
author | Brian Jones <cbj@gnu.org> | 1999-10-16 01:42:40 +0000 |
---|---|---|
committer | Brian Jones <cbj@gnu.org> | 1999-10-16 01:42:40 +0000 |
commit | 97615964e65e56038c7b21535307d2c6bc78fc45 (patch) | |
tree | 507eea8de35dc4aff0255fcdf71c23fb314ee27b /doc | |
parent | 3d9e99e378ece4df9d42214d07a3410d29b48c63 (diff) | |
download | classpath-97615964e65e56038c7b21535307d2c6bc78fc45.tar.gz |
better recursion, moved almost all rules into this one Makefile
Diffstat (limited to 'doc')
-rw-r--r-- | doc/www.gnu.org/Makefile | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/doc/www.gnu.org/Makefile b/doc/www.gnu.org/Makefile index 097374a8c..9ef977d38 100644 --- a/doc/www.gnu.org/Makefile +++ b/doc/www.gnu.org/Makefile @@ -1,23 +1,43 @@ +TOPLEVEL := . +SUBDIRS := announce + +DIRS := $(SUBDIRS) $(TOPLEVEL) + ifndef MHC MHC=mhc endif -%.html : %.mhtml macros.mhtml +VPATH = .. + +TEXI_SRC := $(wildcard ../*.texinfo) +MHTML_OBJS := $(patsubst ../%, doc/%, $(TEXI_SRC:.texinfo=.mhtml)) + +MHTML_SRC := $(foreach dir, $(DIRS), $(wildcard $(dir)/*.mhtml)) +HTML_OBJS := $(MHTML_SRC:.mhtml=.html) $(MHTML_OBJS:.mhtml=.html) + +%.texinfo : + cp ../$(notdir $(@)) doc + +%.mhtml : %.texinfo + $(SHELL) -c "cd $(dir $(@)) && texi2html -monolithic $(notdir $<)"; + sed -e 's/<BODY>/<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#1F00FF" ALINK="#FF0000" VLINK="#9900DD">/' -e 's/<\/BODY>/<include footer.mhtml><footer><\/BODY>/' $(subst .mhtml,.html,$(@)) > $@; + -rm $(subst .mhtml,.html,$(@)); + +%.html : %.mhtml $(TOPLEVEL)/macros.mhtml $(MHC) $< > $@ -all : classpath.html status.html index.html doc announce +all : $(HTML_OBJS) index.html subdirs index.html : classpath.html ln -s classpath.html index.html .PHONY : clean clean : + $(foreach dir, $(SUBDIRS), cd $(dir) && $(MAKE) clean) + cd doc && $(MAKE) clean -rm *.html -.PHONY : doc -doc : - cd doc && $(MAKE) +.PHONY : subdirs +subdirs : + $(foreach dir, $(SUBDIRS), cd $(dir) && $(MAKE)) -.PHONY : announce -announce : - cd announce && $(MAKE) |