blob: ae714d76d6460c1ec670e6c6d1036122c5abe336 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# If this makefile is not generic enough to support a translation,
# please contact debian-www.
WMLBASE=../..
CUR_DIR=events/2011
SUBS=
GETTEXTFILES += newsevents.mo
NOGENERICDEP := true
include $(WMLBASE)/Make.lang
EVENTFILES := $(wildcard [0-9]*\-*.wml)
ICSFILES := $(filter-out %-report.wml,$(EVENTFILES))
ICSFILES := $(ICSFILES:.wml=.$(LANGUAGE).ics)
DESTICSFILES := $(patsubst %.ics,$(HTMLDIR)/%.ics,$(ICSFILES))
all:: $(ICSFILES)
install:: $(DESTICSFILES)
clean::
rm -f *.$(LANGUAGE).ics
# The "| $(VCSREVCACHE)" here is an order-only prerequisite - always
# check that the prerequisite exists and is up to date, but don't
# rebuild everything whenever it's updated - see
# https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html
index.$(LANGUAGE).html: index.wml $(wildcard [0-9]*\-*.wml) $(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml | $(VCSREVCACHE)
%.$(LANGUAGE).html: %.wml $(TEMPLDIR)/event.wml | $(VCSREVCACHE)
$(WML) $(<F)
%.$(LANGUAGE).ics: %.wml $(ENGLISHSRCDIR)/events/make_ics.pl
$(ENGLISHSRCDIR)/events/make_ics.pl $< $@
$(HTMLDIR)/%.ics: %.ics
@echo copying $< to $(HTMLDIR)
$(IGNORE)install -m 644 -p $< $(HTMLDIR)
|