/[webwml]/webwml/Makefile.common
ViewVC logotype

Diff of /webwml/Makefile.common

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

revision 1.13 by joy, Mon Oct 23 21:37:13 2000 UTC revision 1.14 by joy, Sun Nov 12 18:12:04 2000 UTC
# Line 3  Line 3 
3    
4  CUR_YEAR := $(shell date +%Y)  CUR_YEAR := $(shell date +%Y)
5    
 ifeq "$(findstring SPI,$(CURDIR))" "SPI"  
 SPI := true  
 endif  
   
 ifdef SPI  
 RELHTMLBASE := ../../../debian.org/SPI  
 ENGLISHSRCDIR := $(WMLBASE)/../../english/SPI  
 TEMPLDIR := $(ENGLISHSRCDIR)/template  
 else  
6  RELHTMLBASE := ../../debian.org  RELHTMLBASE := ../../debian.org
7  ENGLISHSRCDIR := $(WMLBASE)/../english  ENGLISHSRCDIR := $(WMLBASE)/../english
8  TEMPLDIR := $(ENGLISHSRCDIR)/template/debian  TEMPLDIR := $(ENGLISHSRCDIR)/template/debian
 endif  
9    
10  ENGLISHDIR := $(ENGLISHSRCDIR)  ENGLISHDIR := $(ENGLISHSRCDIR)
11  # ^ just an alias ^  # ^ just an alias ^
# Line 108  endif Line 98  endif
98    
99  # the rule for every wml file  # the rule for every wml file
100  ifndef NOGENERICDEP  ifndef NOGENERICDEP
 ifdef SPI  
 %.$(LANGUAGE).html : %.wml \  
   $(WMLBASE)/../../.wmlrc $(WMLBASE)/../.wmlrc $(WMLBASE)/.wmlrc \  
   $(TEMPLDIR)/template.wml $(HTMLDEP)  
         $(WML) $(<F)  
 else  
101  %.$(LANGUAGE).html : %.wml $(WMLBASE)/../.wmlrc $(WMLBASE)/.wmlrc \  %.$(LANGUAGE).html : %.wml $(WMLBASE)/../.wmlrc $(WMLBASE)/.wmlrc \
102    $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml $(HTMLDEP)    $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml $(HTMLDEP)
103          $(WML) $(<F)          $(WML) $(<F)
104    ifeq "$(LANGUAGE)" "en"
105            $(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE)
106    endif
107    ifneq "$(findstring /international/,$(CURDIR))" ""
108            $(WMLBASE)/../touch_translations.pl $(CURDIR)/$(<F) $(LANGUAGE)
109  endif  endif
110  endif  endif
111    
# Line 137  ifeq "$(LANGUAGE)" "en" Line 126  ifeq "$(LANGUAGE)" "en"
126  endif  endif
127    
128  # template dependencies  # template dependencies
 ifdef SPI  
 $(TEMPLDIR)/template.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml  
         touch $(TEMPLDIR)/template.wml  
   
 $(TEMPLDIR)/footer.wml: $(TEMPLDIR)/ctime.wml  
         touch $(TEMPLDIR)/footer.wml  
 else  
129  $(TEMPLDIR)/basic.wml: $(TEMPLDIR)/navbar.wml  $(TEMPLDIR)/basic.wml: $(TEMPLDIR)/navbar.wml
130          touch $(TEMPLDIR)/basic.wml          touch $(TEMPLDIR)/basic.wml
131    
# Line 182  $(TEMPLDIR)/security.wml: $(TEMPLDIR)/co Line 164  $(TEMPLDIR)/security.wml: $(TEMPLDIR)/co
164  $(TEMPLDIR)/ddp.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/languages.wml \  $(TEMPLDIR)/ddp.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/languages.wml \
165                  $(TEMPLDIR)/footer.wml                  $(TEMPLDIR)/footer.wml
166          touch $(TEMPLDIR)/ddp.wml          touch $(TEMPLDIR)/ddp.wml
 endif  
167    
168  .SUFFIXES:  .SUFFIXES:
169  .PHONY: all $(existing-SUBS) install $(existing-SUBS-install)  .PHONY: all $(existing-SUBS) install $(existing-SUBS-install)

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.5