Commit 75072ff7 authored by Josip Rodin's avatar Josip Rodin

small cleanup WRT templates directory variable; added dependency on .wmlrc files for all files

CVS version numbers

Makefile.common: 1.11 -> 1.12
parent 5ac07aaa
......@@ -9,18 +9,17 @@ endif
ifdef SPI
RELHTMLBASE := ../../../debian.org/SPI
RELTEMPLDIR := ../../english/SPI/template
ENGLISHSRCDIR = $(WMLBASE)/../../english/SPI
ENGLISHSRCDIR := $(WMLBASE)/../../english/SPI
TEMPLDIR := $(ENGLISHSRCDIR)/template
else
RELHTMLBASE := ../../debian.org
RELTEMPLDIR := ../english/template/debian
ENGLISHSRCDIR = $(WMLBASE)/../english
ENGLISHSRCDIR := $(WMLBASE)/../english
TEMPLDIR := $(ENGLISHSRCDIR)/template/debian
endif
ENGLISHDIR := $(ENGLISHSRCDIR)
# ^ just an alias ^
HTMLDIR = $(WMLBASE)/$(RELHTMLBASE)/$(CUR_DIR)
TEMPLDIR = $(WMLBASE)/$(RELTEMPLDIR)
LANGUAGECAP = $(shell echo $(LANGUAGE) | tr "a-z" "A-Z")
WMLOPTIONS := -q -D CUR_YEAR=$(shell date +%Y)
......@@ -110,11 +109,13 @@ endif
# the rule for every wml file
ifndef NOGENERICDEP
ifdef SPI
%.$(LANGUAGE).html : %.wml $(TEMPLDIR)/template.wml $(HTMLDEP)
%.$(LANGUAGE).html : %.wml \
$(WMLBASE)/../../.wmlrc $(WMLBASE)/../.wmlrc $(WMLBASE)/.wmlrc \
$(TEMPLDIR)/template.wml $(HTMLDEP)
$(WML) $(<F)
else
%.$(LANGUAGE).html : %.wml $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml \
$(HTMLDEP)
%.$(LANGUAGE).html : %.wml $(WMLBASE)/../.wmlrc $(WMLBASE)/.wmlrc \
$(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml $(HTMLDEP)
$(WML) $(<F)
endif
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment