OSDN Git Service

Initial revision
[pf3gnuchains/gcc-fork.git] / libjava / classpath / doc / www.gnu.org / downloads / Makefile
1 ifndef WMK
2   export WMK=wmk
3 endif
4 ifndef WML
5   export WML=wml
6 endif
7
8 WML_SRC = $(wildcard *.wml)
9 WML_OBJS = $(patsubst %.wml,%.html,$(WML_SRC))
10
11 %.html: %.wml ../include/macros.wml  ../include/layout.wml
12         $(WML) -o $@ $<
13 #       -rm -f $(patsubst %.wml,%.html,$<)
14
15 all : $(WML_OBJS) subdirs
16
17 .PHONY : clean
18 clean :
19         $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE) clean";)
20         -rm -f *.html
21
22 .PHONY : subdirs
23 subdirs :
24         $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE)";)
25
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/
32