Commit 206f21fa authored by Josip Rodin's avatar Josip Rodin

contained within ../Makefile.common now

CVS version numbers

arabic/Make.common: 1.5 -> 1.6 
arabic/Make.dep.generic: 1.1 -> 1.2 
arabic/Make.dep.templ: 1.1 -> 1.2 
arabic/Make.lang: 1.2 -> 1.3 
croatian/Make.common: 1.9 -> 1.10 
croatian/Make.dep.generic: 1.2 -> 1.3 
croatian/Make.dep.templ: 1.4 -> 1.5 
croatian/Make.lang: 1.3 -> 1.4 
danish/Make.common: 1.7 -> 1.8 
danish/Make.dep.generic: 1.2 -> 1.3 
danish/Make.dep.templ: 1.2 -> 1.3 
danish/Make.lang: 1.3 -> 1.4 
dutch/Make.common: 1.3 -> 1.4 
dutch/Make.dep.generic: 1.1 -> 1.2 
dutch/Make.dep.templ: 1.1 -> 1.2 
dutch/Make.lang: 1.1 -> 1.2 
english/Make.common: 1.17 -> 1.18 
english/Make.dep.generic: 1.3 -> 1.4 
english/Make.dep.templ: 1.9 -> 1.10 
english/Make.lang: 1.11 -> 1.12 
esperanto/Make.common: 1.5 -> 1.6 
esperanto/Make.dep.generic: 1.1 -> 1.2 
esperanto/Make.dep.templ: 1.1 -> 1.2 
esperanto/Make.lang: 1.2 -> 1.3 
finnish/Make.common: 1.6 -> 1.7 
finnish/Make.dep.generic: 1.1 -> 1.2 
finnish/Make.dep.templ: 1.1 -> 1.2 
finnish/Make.lang: 1.2 -> 1.3 
french/Make.common: 1.9 -> 1.10 
french/Make.dep.generic: 1.2 -> 1.3 
french/Make.dep.templ: 1.3 -> 1.4 
french/Make.lang: 1.4 -> 1.5 
german/Make.common: 1.9 -> 1.10 
german/Make.dep.generic: 1.4 -> 1.5 
german/Make.dep.templ: 1.4 -> 1.5 
german/Make.lang: 1.5 -> 1.6 
hungarian/Make.common: 1.5 -> 1.6 
hungarian/Make.dep.generic: 1.1 -> 1.2 
hungarian/Make.dep.templ: 1.1 -> 1.2 
hungarian/Make.lang: 1.2 -> 1.3 
italian/Make.common: 1.8 -> 1.9 
italian/Make.dep.generic: 1.2 -> 1.3 
italian/Make.dep.templ: 1.2 -> 1.3 
italian/Make.lang: 1.4 -> 1.5 
norwegian/Make.common: 1.6 -> 1.7 
norwegian/Make.dep.generic: 1.1 -> 1.2 
norwegian/Make.dep.templ: 1.1 -> 1.2 
norwegian/Make.lang: 1.2 -> 1.3 
polish/Make.common: 1.8 -> 1.9 
polish/Make.dep.generic: 1.3 -> 1.4 
polish/Make.dep.templ: 1.2 -> 1.3 
polish/Make.lang: 1.4 -> 1.5 
portuguese/Make.common: 1.6 -> 1.7 
portuguese/Make.dep.generic: 1.1 -> 1.2 
portuguese/Make.dep.templ: 1.1 -> 1.2 
portuguese/Make.lang: 1.2 -> 1.3 
romanian/Make.common: 1.5 -> 1.6 
romanian/Make.dep.generic: 1.1 -> 1.2 
romanian/Make.dep.templ: 1.1 -> 1.2 
romanian/Make.lang: 1.2 -> 1.3 
russian/Make.common: 1.5 -> 1.6 
russian/Make.dep.generic: 1.1 -> 1.2 
russian/Make.dep.templ: 1.1 -> 1.2 
russian/Make.lang: 1.2 -> 1.3 
spanish/Make.common: 1.9 -> 1.10 
spanish/Make.dep.generic: 1.4 -> 1.5 
spanish/Make.dep.templ: 1.2 -> 1.3 
spanish/Make.lang: 1.4 -> 1.5 
swedish/Make.common: 1.6 -> 1.7 
swedish/Make.dep.generic: 1.1 -> 1.2 
swedish/Make.dep.templ: 1.1 -> 1.2 
swedish/Make.lang: 1.2 -> 1.3 
turkish/Make.common: 1.5 -> 1.6 
turkish/Make.dep.generic: 1.1 -> 1.2 
turkish/Make.dep.templ: 1.1 -> 1.2 
turkish/Make.lang: 1.2 -> 1.3
parent b826b0e1
# Nothing in here should require any modification
# If you feel you need to modify something send mail
# to debian-www explaining why so that others can benefit
# from your improvements
RELHTMLBASE=../../debian.org
RELTEMPLDIR=../english/template/debian
CUR_YEAR=$(shell date +%Y)
HTMLDIR=$(WMLBASE)/$(RELHTMLBASE)/$(CUR_DIR)
TEMPLDIR=$(WMLBASE)/$(RELTEMPLDIR)
# Do Not modify the following line
ENGLISHSRCDIR=$(WMLBASE)/../english
WMLFILES := $(wildcard *.wml)
HTMLFILES := $(patsubst %.wml,%.$(LANGUAGE).html,$(WMLFILES))
HTMLDESTFILES := $(patsubst %.wml,$(HTMLDIR)/%.$(LANGUAGE).html,$(WMLFILES))
# all the binary file types should be added below.
JPGSOURCE := $(wildcard *.jpg)
JPGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(JPGSOURCE))
GIFSOURCE := $(wildcard *.gif)
GIFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(GIFSOURCE))
PNGSOURCE := $(wildcard *.png)
PNGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PNGSOURCE))
PSSOURCE := $(wildcard *.ps.gz)
PSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PSSOURCE))
EPSSOURCE := $(wildcard *.eps)
EPSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(EPSSOURCE))
PDFSOURCE := $(wildcard *.pdf)
PDFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PDFSOURCE))
FIGSOURCE := $(wildcard *.fig)
FIGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(FIGSOURCE))
XCFSOURCE := $(wildcard *.xcf.gz)
XCFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(XCFSOURCE))
IMGFILES := $(JPGSOURCE) $(GIFSOURCE) $(PNGSOURCE) $(PSSOURCE) $(EPSSOURCE) $(PDFSOURCE) $(FIGSOURCE) $(XCFSOURCE)
IMGDESTFILES := $(JPGDESTFILES) $(GIFDESTFILES) $(PNGDESTFILES) $(PSDESTFILES) $(EPSDESTFILES) $(PDFDESTFILES) $(FIGDESTFILES) $(XCFDESTFILES)
all:: $(HTMLFILES)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i ; \
fi ; \
done
install::
test -d $(HTMLDIR) || mkdir -p $(HTMLDIR)
install:: $(HTMLDESTFILES) $(IMGDESTFILES)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i install; \
fi ; \
done
clean::
-rm -f *.$(LANGUAGE).html
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i clean; \
fi ; \
done
cleandest::
-rm -f $(HTMLDIR)/*.$(LANGUAGE).html
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i cleandest; \
fi ; \
done
$(HTMLDIR)/%.$(LANGUAGE).html: %.$(LANGUAGE).html
@echo copying $(@F) to $(HTMLDIR)
-@cp $(@F) $(HTMLDIR)
ifeq ($(LANGUAGE),en)
@echo making a link $(@D)/$(*F).html -\> $(@F)
-@ln -f -s $(@F) $(@D)/$(*F).html
endif
$(IMGDESTFILES): $(IMGFILES)
cp $(@F) $(HTMLDIR)
%.$(LANGUAGE).html : %.wml $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml
$(WML) $(<F)
# template dependencies
$(TEMPLDIR)/basic.wml: $(TEMPLDIR)/navbar.wml
touch $(TEMPLDIR)/basic.wml
$(TEMPLDIR)/footer.wml: $(TEMPLDIR)/ctime.wml
touch $(TEMPLDIR)/footer.wml
$(TEMPLDIR)/menubar.wml: $(TEMPLDIR)/footer.wml
touch $(TEMPLDIR)/menubar.wml
$(TEMPLDIR)/mainpage.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/menubar.wml
touch $(TEMPLDIR)/mainpage.wml
$(TEMPLDIR)/template.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/footer.wml \
$(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/template.wml
$(TEMPLDIR)/news.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/footer.wml \
$(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/news.wml
$(TEMPLDIR)/consultant.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/consultant.wml
$(TEMPLDIR)/event.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml $(TEMPLDIR)/basic.wml
touch $(TEMPLDIR)/event.wml
$(TEMPLDIR)/navbar.wml: $(ENGLISHSRCDIR)/Pics/banner.jpg $(ENGLISHSRCDIR)/Pics/logo-50.jpg
touch $(TEMPLDIR)/navbar.wml
# The LANGUAGE variable needs to be set for each language.
# LANGUAGECAP is just the capitalization of LANGUAGE (this is needed for wml slices)
LANGUAGE=ar
LANGUAGECAP=AR
# The two-letter code for the language
LANGUAGE := ar
# The '-q' forces wml to be quiet. Very useful in scripts.
# It is sometimes useful to add '--epilog=weblint' to check for errors
# in the html generated.
# Other languages may want to change the wml command to execute programs
# that get run before or after wml. For example,
# WML="wml -q --prolog="/usr/bin/tcs <options here>" \
# --epilog="/usr/bin/tcs <options here> > $(@D)/$(@F)" \
# -o $(@F)
# If you use --epilog as above, then you will want to add a line to
# Make.templ.inc to remove $(@F) after WML is done.
WMLOPTIONS=-q -D CUR_YEAR=$(shell date +%Y)
WMLOUTFILE=$(@F)
WMLPROLOG=
WMLEPILOG=
WML=wml $(WMLOPTIONS) -o UNDEFu$(LANGUAGECAP):$(WMLOUTFILE) $(WMLPROLOG) $(WMLEPILOG)
include $(WMLBASE)/../Makefile.common
# If you need to modify that is already defined in ../Makefile.common
# you can put it below
# Nothing in here should require any modification
# If you feel you need to modify something send mail
# to debian-www explaining why so that others can benefit
# from your improvements
RELHTMLBASE=../../debian.org
RELTEMPLDIR=../english/template/debian
CUR_YEAR=$(shell date +%Y)
HTMLDIR=$(WMLBASE)/$(RELHTMLBASE)/$(CUR_DIR)
TEMPLDIR=$(WMLBASE)/$(RELTEMPLDIR)
# Do Not modify the following line
ENGLISHSRCDIR=$(WMLBASE)/../english
WMLFILES := $(wildcard *.wml)
HTMLFILES := $(patsubst %.wml,%.$(LANGUAGE).html,$(WMLFILES))
HTMLDESTFILES := $(patsubst %.wml,$(HTMLDIR)/%.$(LANGUAGE).html,$(WMLFILES))
# all the binary file types should be added below.
JPGSOURCE := $(wildcard *.jpg)
JPGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(JPGSOURCE))
GIFSOURCE := $(wildcard *.gif)
GIFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(GIFSOURCE))
PNGSOURCE := $(wildcard *.png)
PNGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PNGSOURCE))
PSSOURCE := $(wildcard *.ps.gz)
PSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PSSOURCE))
EPSSOURCE := $(wildcard *.eps)
EPSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(EPSSOURCE))
PDFSOURCE := $(wildcard *.pdf)
PDFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PDFSOURCE))
FIGSOURCE := $(wildcard *.fig)
FIGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(FIGSOURCE))
XCFSOURCE := $(wildcard *.xcf.gz)
XCFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(XCFSOURCE))
IMGFILES := $(JPGSOURCE) $(GIFSOURCE) $(PNGSOURCE) $(PSSOURCE) $(EPSSOURCE) $(PDFSOURCE) $(FIGSOURCE) $(XCFSOURCE)
IMGDESTFILES := $(JPGDESTFILES) $(GIFDESTFILES) $(PNGDESTFILES) $(PSDESTFILES) $(EPSDESTFILES) $(PDFDESTFILES) $(FIGDESTFILES) $(XCFDESTFILES)
all:: $(HTMLFILES)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i ; \
fi ; \
done
install::
test -d $(HTMLDIR) || mkdir -p $(HTMLDIR)
install:: $(HTMLDESTFILES) $(IMGDESTFILES)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i install; \
fi ; \
done
clean::
-rm -f *.$(LANGUAGE).html
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i clean; \
fi ; \
done
cleandest::
-rm -f $(HTMLDIR)/*.$(LANGUAGE).html
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i cleandest; \
fi ; \
done
$(HTMLDIR)/%.$(LANGUAGE).html: %.$(LANGUAGE).html
@echo copying $(@F) to $(HTMLDIR)
-@cp $(@F) $(HTMLDIR)
ifeq ($(LANGUAGE),en)
@echo making a link $(@D)/$(*F).html -\> $(@F)
-@ln -f -s $(@F) $(@D)/$(*F).html
endif
$(IMGDESTFILES): $(IMGFILES)
cp $(@F) $(HTMLDIR)
%.$(LANGUAGE).html : %.wml $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml
$(WML) $(<F)
# template dependencies
$(TEMPLDIR)/basic.wml: $(TEMPLDIR)/navbar.wml
touch $(TEMPLDIR)/basic.wml
$(TEMPLDIR)/footer.wml: $(TEMPLDIR)/ctime.wml
touch $(TEMPLDIR)/footer.wml
$(TEMPLDIR)/menubar.wml: $(TEMPLDIR)/footer.wml
touch $(TEMPLDIR)/menubar.wml
$(TEMPLDIR)/mainpage.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/menubar.wml
touch $(TEMPLDIR)/mainpage.wml
$(TEMPLDIR)/template.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/footer.wml \
$(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/template.wml
$(TEMPLDIR)/news.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/footer.wml \
$(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/news.wml
$(TEMPLDIR)/consultant.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/consultant.wml
$(TEMPLDIR)/event.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml $(TEMPLDIR)/basic.wml
touch $(TEMPLDIR)/event.wml
$(TEMPLDIR)/navbar.wml: $(ENGLISHSRCDIR)/Pics/banner.jpg $(ENGLISHSRCDIR)/Pics/logo-50.jpg
touch $(TEMPLDIR)/navbar.wml
# The LANGUAGE variable needs to be set for each language.
# LANGUAGECAP is just the capitalization of LANGUAGE (this is needed for wml slices)
LANGUAGE=hr
LANGUAGECAP=HR
# The two-letter code for the language
LANGUAGE := da
# The '-q' forces wml to be quiet. Very useful in scripts.
# It is sometimes useful to add '--epilog=weblint' to check for errors
# in the html generated.
# Other languages may want to change the wml command to execute programs
# that get run before or after wml. For example,
# WML="wml -q --prolog="/usr/bin/tcs <options here>" \
# --epilog="/usr/bin/tcs <options here> > $(@D)/$(@F)" \
# -o $(@F)
# If you use --epilog as above, then you will want to add a line to
# Make.templ.inc to remove $(@F) after WML is done.
WMLOPTIONS=-q -D CUR_YEAR=$(shell date +%Y)
WMLOUTFILE=$(@F)
WMLPROLOG=
WMLEPILOG=
WML=wml $(WMLOPTIONS) -o UNDEFu$(LANGUAGECAP):$(WMLOUTFILE) $(WMLPROLOG) $(WMLEPILOG)
include $(WMLBASE)/../Makefile.common
# If you need to modify that is already defined in ../Makefile.common
# you can put it below
# Nothing in here should require any modification
# If you feel you need to modify something send mail
# to debian-www explaining why so that others can benefit
# from your improvements
RELHTMLBASE=../../debian.org
RELTEMPLDIR=../english/template/debian
CUR_YEAR=$(shell date +%Y)
HTMLDIR=$(WMLBASE)/$(RELHTMLBASE)/$(CUR_DIR)
TEMPLDIR=$(WMLBASE)/$(RELTEMPLDIR)
# Do Not modify the following line
ENGLISHSRCDIR=$(WMLBASE)/../english
WMLFILES := $(wildcard *.wml)
HTMLFILES := $(patsubst %.wml,%.$(LANGUAGE).html,$(WMLFILES))
HTMLDESTFILES := $(patsubst %.wml,$(HTMLDIR)/%.$(LANGUAGE).html,$(WMLFILES))
# all the binary file types should be added below.
JPGSOURCE := $(wildcard *.jpg)
JPGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(JPGSOURCE))
GIFSOURCE := $(wildcard *.gif)
GIFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(GIFSOURCE))
PNGSOURCE := $(wildcard *.png)
PNGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PNGSOURCE))
PSSOURCE := $(wildcard *.ps.gz)
PSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PSSOURCE))
EPSSOURCE := $(wildcard *.eps)
EPSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(EPSSOURCE))
PDFSOURCE := $(wildcard *.pdf)
PDFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PDFSOURCE))
FIGSOURCE := $(wildcard *.fig)
FIGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(FIGSOURCE))
XCFSOURCE := $(wildcard *.xcf.gz)
XCFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(XCFSOURCE))
IMGFILES := $(JPGSOURCE) $(GIFSOURCE) $(PNGSOURCE) $(PSSOURCE) $(EPSSOURCE) $(PDFSOURCE) $(FIGSOURCE) $(XCFSOURCE)
IMGDESTFILES := $(JPGDESTFILES) $(GIFDESTFILES) $(PNGDESTFILES) $(PSDESTFILES) $(EPSDESTFILES) $(PDFDESTFILES) $(FIGDESTFILES) $(XCFDESTFILES)
all:: $(HTMLFILES)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i ; \
fi ; \
done
install::
test -d $(HTMLDIR) || mkdir -p $(HTMLDIR)
install:: $(HTMLDESTFILES) $(IMGDESTFILES)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i install; \
fi ; \
done
clean::
-rm -f *.$(LANGUAGE).html
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i clean; \
fi ; \
done
cleandest::
-rm -f $(HTMLDIR)/*.$(LANGUAGE).html
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i cleandest; \
fi ; \
done
$(HTMLDIR)/%.$(LANGUAGE).html: %.$(LANGUAGE).html
@echo copying $(@F) to $(HTMLDIR)
-@cp $(@F) $(HTMLDIR)
ifeq ($(LANGUAGE),en)
@echo making a link $(@D)/$(*F).html -\> $(@F)
-@ln -f -s $(@F) $(@D)/$(*F).html
endif
$(IMGDESTFILES): $(IMGFILES)
cp $(@F) $(HTMLDIR)
%.$(LANGUAGE).html : %.wml $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml
$(WML) $(<F)
# template dependencies
$(TEMPLDIR)/basic.wml: $(TEMPLDIR)/navbar.wml
touch $(TEMPLDIR)/basic.wml
$(TEMPLDIR)/footer.wml: $(TEMPLDIR)/ctime.wml
touch $(TEMPLDIR)/footer.wml
$(TEMPLDIR)/menubar.wml: $(TEMPLDIR)/footer.wml
touch $(TEMPLDIR)/menubar.wml
$(TEMPLDIR)/mainpage.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/menubar.wml
touch $(TEMPLDIR)/mainpage.wml
$(TEMPLDIR)/template.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/footer.wml \
$(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/template.wml
$(TEMPLDIR)/news.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/footer.wml \
$(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/news.wml
$(TEMPLDIR)/consultant.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/consultant.wml
$(TEMPLDIR)/event.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml $(TEMPLDIR)/basic.wml
touch $(TEMPLDIR)/event.wml
# The LANGUAGE variable needs to be set for each language.
# LANGUAGECAP is just the capitalization of LANGUAGE (this is needed for wml slices)
LANGUAGE=da
LANGUAGECAP=DA
# The two-letter code for the language
LANGUAGE := da
# The '-q' forces wml to be quiet. Very useful in scripts.
# It is sometimes useful to add '--epilog=weblint' to check for errors
# in the html generated.
# Other languages may want to change the wml command to execute programs
# that get run before or after wml. For example,
# WML="wml -q --prolog="/usr/bin/tcs <options here>" \
# --epilog="/usr/bin/tcs <options here> > $(@D)/$(@F)" \
# -o $(@F)
# If you use --epilog as above, then you will want to add a line to
# Make.templ.inc to remove $(@F) after WML is done.
WMLOPTIONS=-q -D CUR_YEAR=$(shell date +%Y)
WMLOUTFILE=$(@F)
WMLPROLOG=
WMLEPILOG=
WML=wml $(WMLOPTIONS) -o UNDEFu$(LANGUAGECAP):$(WMLOUTFILE) $(WMLPROLOG) $(WMLEPILOG)
include $(WMLBASE)/../Makefile.common
# If you need to modify that is already defined in ../Makefile.common
# you can put it below
# Nothing in here should require any modification
# If you feel you need to modify something send mail
# to debian-www explaining why so that others can benefit
# from your improvements
RELHTMLBASE=../../debian.org
RELTEMPLDIR=../english/template/debian
CUR_YEAR=$(shell date +%Y)
HTMLDIR=$(WMLBASE)/$(RELHTMLBASE)/$(CUR_DIR)
TEMPLDIR=$(WMLBASE)/$(RELTEMPLDIR)
# Do Not modify the following line
ENGLISHSRCDIR=$(WMLBASE)/../english
WMLFILES := $(wildcard *.wml)
HTMLFILES := $(patsubst %.wml,%.$(LANGUAGE).html,$(WMLFILES))
HTMLDESTFILES := $(patsubst %.wml,$(HTMLDIR)/%.$(LANGUAGE).html,$(WMLFILES))
# all the binary file types should be added below.
JPGSOURCE := $(wildcard *.jpg)
JPGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(JPGSOURCE))
GIFSOURCE := $(wildcard *.gif)
GIFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(GIFSOURCE))
PNGSOURCE := $(wildcard *.png)
PNGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PNGSOURCE))
PSSOURCE := $(wildcard *.ps.gz)
PSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PSSOURCE))
EPSSOURCE := $(wildcard *.eps)
EPSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(EPSSOURCE))
PDFSOURCE := $(wildcard *.pdf)
PDFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PDFSOURCE))
FIGSOURCE := $(wildcard *.fig)
FIGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(FIGSOURCE))
XCFSOURCE := $(wildcard *.xcf.gz)
XCFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(XCFSOURCE))
IMGFILES := $(JPGSOURCE) $(GIFSOURCE) $(PNGSOURCE) $(PSSOURCE) $(EPSSOURCE) $(PDFSOURCE) $(FIGSOURCE) $(XCFSOURCE)
IMGDESTFILES := $(JPGDESTFILES) $(GIFDESTFILES) $(PNGDESTFILES) $(PSDESTFILES) $(EPSDESTFILES) $(PDFDESTFILES) $(FIGDESTFILES) $(XCFDESTFILES)
all:: $(HTMLFILES)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i ; \
fi ; \
done
install::
test -d $(HTMLDIR) || mkdir -p $(HTMLDIR)
install:: $(HTMLDESTFILES) $(IMGDESTFILES)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i install; \
fi ; \
done
clean::
-rm -f *.$(LANGUAGE).html
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i clean; \
fi ; \
done
cleandest::
-rm -f $(HTMLDIR)/*.$(LANGUAGE).html
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i cleandest; \
fi ; \
done
$(HTMLDIR)/%.$(LANGUAGE).html: %.$(LANGUAGE).html
@echo copying $(@F) to $(HTMLDIR)
-@cp $(@F) $(HTMLDIR)
ifeq ($(LANGUAGE),en)
@echo making a link $(@D)/$(*F).html -\> $(@F)
-@ln -f -s $(@F) $(@D)/$(*F).html
endif
$(IMGDESTFILES): $(IMGFILES)
cp $(@F) $(HTMLDIR)
%.$(LANGUAGE).html : %.wml $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml
$(WML) $(<F)
# template dependencies
$(TEMPLDIR)/basic.wml: $(TEMPLDIR)/navbar.wml
touch $(TEMPLDIR)/basic.wml
$(TEMPLDIR)/footer.wml: $(TEMPLDIR)/ctime.wml
touch $(TEMPLDIR)/footer.wml
$(TEMPLDIR)/menubar.wml: $(TEMPLDIR)/footer.wml
touch $(TEMPLDIR)/menubar.wml
$(TEMPLDIR)/mainpage.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/menubar.wml
touch $(TEMPLDIR)/mainpage.wml
$(TEMPLDIR)/template.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/footer.wml \
$(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/template.wml
$(TEMPLDIR)/news.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/footer.wml \
$(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/news.wml
$(TEMPLDIR)/consultant.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/consultant.wml
$(TEMPLDIR)/event.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml $(TEMPLDIR)/basic.wml
touch $(TEMPLDIR)/event.wml
$(TEMPLDIR)/navbar.wml: $(ENGLISHSRCDIR)/Pics/banner.jpg $(ENGLISHSRCDIR)/Pics/logo-50.jpg
touch $(TEMPLDIR)/navbar.wml
# The LANGUAGE variable needs to be set for each language.
# LANGUAGECAP is just the capitalization of LANGUAGE (this is needed for wml slices)
LANGUAGE=nl
LANGUAGECAP=NL
# The two-letter code for the language
LANGUAGE := nl
# The '-q' forces wml to be quiet. Very useful in scripts.
# It is sometimes useful to add '--epilog=weblint' to check for errors
# in the html generated.
# Other languages may want to change the wml command to execute programs
# that get run before or after wml. For example,
# WML="wml -q --prolog="/usr/bin/tcs <options here>" \
# --epilog="/usr/bin/tcs <options here> > $(@D)/$(@F)" \
# -o $(@F)
# If you use --epilog as above, then you will want to add a line to
# Make.templ.inc to remove $(@F) after WML is done.
WMLOPTIONS=-q -D CUR_YEAR=$(shell date +%Y)
WMLOUTFILE=$(@F)
WMLPROLOG=
WMLEPILOG=
WML=wml $(WMLOPTIONS) -o UNDEFu$(LANGUAGECAP):$(WMLOUTFILE) $(WMLPROLOG) $(WMLEPILOG)
include $(WMLBASE)/../Makefile.common
# If you need to modify that is already defined in ../Makefile.common
# you can put it below
# Nothing in here should require any modification
# If you feel you need to modify something send mail
# to debian-www explaining why so that others can benefit
# from your improvements
RELHTMLBASE=../../debian.org
RELTEMPLDIR=../english/template/debian
CUR_YEAR=$(shell date +%Y)
HTMLDIR=$(WMLBASE)/$(RELHTMLBASE)/$(CUR_DIR)
TEMPLDIR=$(WMLBASE)/$(RELTEMPLDIR)
# Do Not modify the following line
ENGLISHSRCDIR=$(WMLBASE)/../english
WMLFILES := $(wildcard *.wml)
HTMLFILES := $(patsubst %.wml,%.$(LANGUAGE).html,$(WMLFILES))
HTMLDESTFILES := $(patsubst %.wml,$(HTMLDIR)/%.$(LANGUAGE).html,$(WMLFILES))
# all the binary file types should be added below.
JPGSOURCE := $(wildcard *.jpg)
JPGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(JPGSOURCE))
GIFSOURCE := $(wildcard *.gif)
GIFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(GIFSOURCE))
PNGSOURCE := $(wildcard *.png)
PNGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PNGSOURCE))
PSSOURCE := $(wildcard *.ps.gz)
PSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PSSOURCE))
EPSSOURCE := $(wildcard *.eps)
EPSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(EPSSOURCE))
PDFSOURCE := $(wildcard *.pdf)
PDFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PDFSOURCE))
FIGSOURCE := $(wildcard *.fig)
FIGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(FIGSOURCE))
XCFSOURCE := $(wildcard *.xcf.gz)
XCFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(XCFSOURCE))
IMGFILES := $(JPGSOURCE) $(GIFSOURCE) $(PNGSOURCE) $(PSSOURCE) $(EPSSOURCE) $(PDFSOURCE) $(FIGSOURCE) $(XCFSOURCE)
IMGDESTFILES := $(JPGDESTFILES) $(GIFDESTFILES) $(PNGDESTFILES) $(PSDESTFILES) $(EPSDESTFILES) $(PDFDESTFILES) $(FIGDESTFILES) $(XCFDESTFILES)
all:: $(HTMLFILES)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i ; \
fi ; \
done
install::
test -d $(HTMLDIR) || mkdir -p $(HTMLDIR)
install:: $(HTMLDESTFILES) $(IMGDESTFILES)
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i install; \
fi ; \
done
clean::
-rm -f *.$(LANGUAGE).html
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i clean; \
fi ; \
done
cleandest::
-rm -f $(HTMLDIR)/*.$(LANGUAGE).html
@for i in $(SUBS) ''; do \
if [ -d "$$i" ]; then \
$(MAKE) -C $$i cleandest; \
fi ; \
done
$(HTMLDIR)/%.$(LANGUAGE).html: %.$(LANGUAGE).html
@echo copying $(@F) to $(HTMLDIR)
-@cp $(@F) $(HTMLDIR)
ifeq ($(LANGUAGE),en)
@echo making a link $(@D)/$(*F).html -\> $(@F)
-@ln -f -s $(@F) $(@D)/$(*F).html
endif
$(IMGDESTFILES): $(IMGFILES)
cp $(@F) $(HTMLDIR)
%.$(LANGUAGE).html : %.wml $(TEMPLDIR)/template.wml $(TEMPLDIR)/languages.wml
$(WML) $(<F)
# template dependencies
$(TEMPLDIR)/basic.wml: $(TEMPLDIR)/navbar.wml
touch $(TEMPLDIR)/basic.wml
$(TEMPLDIR)/footer.wml: $(TEMPLDIR)/ctime.wml
touch $(TEMPLDIR)/footer.wml
$(TEMPLDIR)/menubar.wml: $(TEMPLDIR)/footer.wml
touch $(TEMPLDIR)/menubar.wml
$(TEMPLDIR)/mainpage.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/menubar.wml
touch $(TEMPLDIR)/mainpage.wml
$(TEMPLDIR)/template.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/footer.wml \
$(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/template.wml
$(TEMPLDIR)/news.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/footer.wml \
$(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/news.wml
$(TEMPLDIR)/consultant.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml
touch $(TEMPLDIR)/consultant.wml
$(TEMPLDIR)/event.wml: $(TEMPLDIR)/footer.wml $(TEMPLDIR)/languages.wml $(TEMPLDIR)/basic.wml
touch $(TEMPLDIR)/event.wml
$(TEMPLDIR)/navbar.wml: $(ENGLISHSRCDIR)/Pics/banner.jpg $(ENGLISHSRCDIR)/Pics/logo-50.jpg
touch $(TEMPLDIR)/navbar.wml
$(TEMPLDIR)/security.wml: $(TEMPLDIR)/common_translation.wml \
$(TEMPLDIR)/basic.wml $(TEMPLDIR)/fixes_link.wml \
$(TEMPLDIR)/languages.wml $(TEMPLDIR)/ctime.wml \
$(TEMPLDIR)/footer.wml
touch $(TEMPLDIR)/security.wml
$(TEMPLDIR)/ddp.wml: $(TEMPLDIR)/basic.wml $(TEMPLDIR)/languages.wml \
$(TEMPLDIR)/footer.wml
touch $(TEMPLDIR)/ddp.wml
# The LANGUAGE variable needs to be set for each language.
# LANGUAGECAP is just the capitalization of LANGUAGE (this is needed for wml slices)
LANGUAGE=en
LANGUAGECAP=EN
# The two-letter code for the language
LANGUAGE := en
# The '-q' forces wml to be quiet. Very useful in scripts.
# It is sometimes useful to add '--epilog=weblint' to check for errors
# in the html generated.
# Other languages may want to change the wml command to execute programs
# that get run before or after wml. For example,
# WML="wml -q --prolog="/usr/bin/tcs <options here>" \
# --epilog="/usr/bin/tcs <options here> > $(@D)/$(@F)" \
# -o $(@F)
# If you use --epilog as above, then you will want to add a line to
# Make.templ.inc to remove $(@F) after WML is done.
WMLOPTIONS=-q -D CUR_YEAR=$(shell date +%Y)
WMLOUTFILE=$(@F)
WMLPROLOG=
WMLEPILOG=
WML=wml $(WMLOPTIONS) -o UNDEFu$(LANGUAGECAP):$(WMLOUTFILE) $(WMLPROLOG) $(WMLEPILOG)
include $(WMLBASE)/../Makefile.common
# If you need to modify that is already defined in ../Makefile.common
# you can put it below
# Nothing in here should require any modification
# If you feel you need to modify something send mail
# to debian-www explaining why so that others can benefit
# from your improvements
RELHTMLBASE=../../debian.org
RELTEMPLDIR=../english/template/debian
CUR_YEAR=$(shell date +%Y)
HTMLDIR=$(WMLBASE)/$(RELHTMLBASE)/$(CUR_DIR)
TEMPLDIR=$(WMLBASE)/$(RELTEMPLDIR)
# Do Not modify the following line
ENGLISHSRCDIR=$(WMLBASE)/../english
WMLFILES := $(wildcard *.wml)
HTMLFILES := $(patsubst %.wml,%.$(LANGUAGE).html,$(WMLFILES))
HTMLDESTFILES := $(patsubst %.wml,$(HTMLDIR)/%.$(LANGUAGE).html,$(WMLFILES))
# all the binary file types should be added below.
JPGSOURCE := $(wildcard *.jpg)
JPGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(JPGSOURCE))
GIFSOURCE := $(wildcard *.gif)
GIFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(GIFSOURCE))
PNGSOURCE := $(wildcard *.png)
PNGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PNGSOURCE))
PSSOURCE := $(wildcard *.ps.gz)
PSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PSSOURCE))
EPSSOURCE := $(wildcard *.eps)
EPSDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(EPSSOURCE))
PDFSOURCE := $(wildcard *.pdf)
PDFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(PDFSOURCE))
FIGSOURCE := $(wildcard *.fig)
FIGDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(FIGSOURCE))
XCFSOURCE := $(wildcard *.xcf.gz)
XCFDESTFILES := $(patsubst %,$(HTMLDIR)/%,$(XCFSOURCE))
IMGFILES := $(JPGSOURCE) $(GIFSOURCE) $(PNGSOURCE) $(PSSOURCE) $(EPSSOURCE) $(PDFSOURCE) $(FIGSOURCE) $(XCFSOURCE)
IMGDESTFILES := $(JPGDESTFILES) $(GIFDESTFILES) $(PNGDESTFILES) $(PSDESTFILES) $(EPSDESTFILES) $(PDFDESTFILES) $(FIGDESTFILES) $(XCFDESTFILES)
all:: $(HTMLFILES)