diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-16 00:30:23 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-16 00:30:23 +0000 |
| commit | c8875fb97fc03779a5bba09872227b1d08e5d52a (patch) | |
| tree | a0b991cf5866ae1d616639b906ac001811d74508 /libjava/classpath/doc/www.gnu.org/faq/Makefile | |
| parent | c40c1730800ed292b6db39a83d592476fa59623c (diff) | |
| download | ppe42-gcc-c8875fb97fc03779a5bba09872227b1d08e5d52a.tar.gz ppe42-gcc-c8875fb97fc03779a5bba09872227b1d08e5d52a.zip | |
Initial revision
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102074 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/classpath/doc/www.gnu.org/faq/Makefile')
| -rw-r--r-- | libjava/classpath/doc/www.gnu.org/faq/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libjava/classpath/doc/www.gnu.org/faq/Makefile b/libjava/classpath/doc/www.gnu.org/faq/Makefile new file mode 100644 index 00000000000..584db90dc86 --- /dev/null +++ b/libjava/classpath/doc/www.gnu.org/faq/Makefile @@ -0,0 +1,32 @@ +ifndef WMK + export WMK=wmk +endif +ifndef WML + export WML=wml +endif + +WML_SRC = $(wildcard *.wml) +WML_OBJS = $(patsubst %.wml,%.html,$(WML_SRC)) + +%.html: %.wml ../include/macros.wml ../include/layout.wml + $(WML) -o $@ $< +# -rm -f $(patsubst %.wml,%.html,$<) + +all : $(WML_OBJS) subdirs + +.PHONY : clean +clean : + $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE) clean";) + -rm -f *.html + +.PHONY : subdirs +subdirs : + $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE)";) + +.PHONY : publish +publish : + @sh -c "if [ "$(CLASSPATH_WEBROOT)x" = x ]; then echo 'You must set CLASSPATH_WEBROOT in your environment first'; exit 1; fi" + @sh -c "if [ ! -d $(CLASSPATH_WEBROOT) ]; then echo 'You must set CLASSPATH_WEBROOT in your environment first'; exit 1; fi" + $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE) publish";) + -cp -f *.html $(CLASSPATH_WEBROOT)/faq/ + |

