10 TEXI_SRC
:= $(wildcard ..
/..
/*.texinfo
)
12 WML_SRC
= $(patsubst ..
/..
/%, %, $(TEXI_SRC
:.texinfo
=.html
)) $(wildcard *.wml
)
13 WML_OBJS
= $(patsubst %.wml
,%.html
,$(WML_SRC
))
16 texi2html
-monolithic
--ifinfo
--ifhtml
$<
17 # texi2html -monolithic $<;
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
26 # -rm -f $(patsubst %.wml,%.html,$<)
29 all : $(WML_OBJS
) subdirs
33 $(foreach dir, $(SUBDIRS
), sh
-c
"cd $(dir) && $(MAKE) clean";)
35 -rm -f hacking.wml vmintegration.wml
39 $(foreach dir, $(SUBDIRS
), sh
-c
"cd $(dir) && $(MAKE)";)
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
/