PR target/27599
[official-gcc.git] / libjava / classpath / doc / www.gnu.org / docs / Makefile
blob1b7f8ca6794c7915252f52df70f999942c57528a
1 SUBDIRS=
3 ifndef WMK
4 export WMK=wmk
5 endif
6 ifndef WML
7 export WML=wml
8 endif
10 TEXI_SRC := $(wildcard ../../*.texinfo)
11 VPATH = ../..
12 WML_SRC = $(patsubst ../../%, %, $(TEXI_SRC:.texinfo=.html)) $(wildcard *.wml)
13 WML_OBJS = $(patsubst %.wml,%.html,$(WML_SRC))
15 %.html : %.texinfo
16 texi2html -monolithic --ifinfo --ifhtml $<
17 # texi2html -monolithic $<;
18 # cp $< $@
19 # echo '#!wml --include=..' > $@
20 # sed -e 's/<HTML>/\^\#use wml::std::lang\^\#use wml::fmt::isolatin\^\#use wml::std::case global=upper\^<lang:new id=en short>\^<lang:star:slice:>\^\#include <include\/macros.wml>\^<HTML>/' -e 's/<BODY>/<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#1F00FF" ALINK="#FF0000" VLINK="#9900DD">/' -e 's/<\/BODY>/<footer>\^<\/BODY>/' $(subst .wml,.html,$(@)) > $@.sed;
21 # tr "\\^" "\n" < $@.sed >> $@
22 # -rm -f $(subst .wml,.html,$(@)) $@.sed
24 %.html: %.wml ../include/macros.wml ../include/layout.wml
25 $(WML) -o $@ $<
26 # -rm -f $(patsubst %.wml,%.html,$<)
28 .PHONY : all
29 all : $(WML_OBJS) subdirs
31 .PHONY : clean
32 clean :
33 $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE) clean";)
34 -rm -f *.html
35 -rm -f hacking.wml vmintegration.wml
37 .PHONY : subdirs
38 subdirs :
39 $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE)";)
41 .PHONY : publish
42 publish :
43 @sh -c "if [ "$(CLASSPATH_WEBROOT)x" = x ]; then echo 'You must set CLASSPATH_WEBROOT in your environment first'; exit 1; fi"
44 @sh -c "if [ ! -d $(CLASSPATH_WEBROOT) ]; then echo 'You must set CLASSPATH_WEBROOT in your environment first'; exit 1; fi"
45 $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE) publish";)
46 -cp -f *.html $(CLASSPATH_WEBROOT)/docs/