/[classpath]/classpath/doc/www.gnu.org/announce/Makefile
ViewVC logotype

Diff of /classpath/doc/www.gnu.org/announce/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by cbj, Mon Nov 27 23:17:57 2000 UTC revision 1.6 by cbj, Sat Oct 13 14:30:58 2001 UTC
# Line 1  Line 1 
1  MHTML_SRC       := $(wildcard *.mhtml)  ifndef WMK
2  HTML_OBJS       := $(MHTML_SRC:.mhtml=.html)    export WMK=wmk
   
 ifndef MHC  
   export MHC=mhc  
3  endif  endif
4    
5  %.html : %.mhtml ../macros.mhtml  WML_SRC = $(wildcard *.wml)
6          $(MHC) $< > $@  WML_EN_OBJS = $(patsubst %.wml,%.en.html,$(WML_SRC))
7    
8  all : $(HTML_OBJS) index.html  %.en.html: %.wml ../include/macros.wml
9            $(WMK) -f $<
10            -rm -f $(patsubst %.wml,%.html,$<)
11    
12  index.html : announcements.html  all : $(WML_EN_OBJS) subdirs
         -rm index.html  
         ln -s announcements.html index.html  
13    
14  .PHONY : clean  .PHONY : clean
15  clean :  clean :
16          -rm *.html          $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE) clean";)
17            -rm -f *.html
18    
19    .PHONY : subdirs
20    subdirs :
21            $(foreach dir, $(SUBDIRS), sh -c "cd $(dir) && $(MAKE)";)
22    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26