Merge from mainline.
[official-gcc.git] / libjava / classpath / doc / www.gnu.org / downloads / Makefile
blob9f217023d4d2dd0e4a48397714e21bd53923fc5b
1 ifndef WMK
2 export WMK=wmk
3 endif
4 ifndef WML
5 export WML=wml
6 endif
8 WML_SRC = $(wildcard *.wml)
9 WML_OBJS = $(patsubst %.wml,%.html,$(WML_SRC))
11 %.html: %.wml ../include/macros.wml ../include/layout.wml
12 $(WML) -o $@ $<
13 # -rm -f $(patsubst %.wml,%.html,$<)
15 all : $(WML_OBJS) subdirs
17 .PHONY : clean
18 clean :
19 $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE) clean";)
20 -rm -f *.html
22 .PHONY : subdirs
23 subdirs :
24 $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE)";)
26 .PHONY : publish
27 publish :
28 @sh -c "if [ "$(CLASSPATH_WEBROOT)x" = x ]; then echo 'You must set CLASSPATH_WEBROOT in your environment first'; exit 1; fi"
29 @sh -c "if [ ! -d $(CLASSPATH_WEBROOT) ]; then echo 'You must set CLASSPATH_WEBROOT in your environment first'; exit 1; fi"
30 $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE) publish";)
31 -cp -f *.html $(CLASSPATH_WEBROOT)/downloads/