aboutsummaryrefslogtreecommitdiffstats
path: root/english/vote/2024/Makefile
blob: 1bfbc7416fe6fe168bb459dfe063db842295c577 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# If this makefile is not generic enough to support a translation,
# please contact debian-www.

WMLBASE=../..
CUR_DIR=vote/2024
SUBS=platforms
VOTE=$(basename $(sort $(wildcard vote_*.wml)))

include $(WMLBASE)/Make.lang


$(foreach i, $(VOTE), $(i).$(LANGUAGE).html): %.$(LANGUAGE).html: %.wml \
  $(sort $(wildcard $(ENGLISHSRCDIR)/$(CUR_DIR)/../[0-9]*/vote_*.wml)) \
  $(sort $(wildcard vote_*_quorum.txt)) $(sort $(wildcard vote_*_quorum.src)) \
  $(sort $(wildcard vote_*_majority.txt)) $(sort $(wildcard vote_*_majority.src)) \
  $(sort $(wildcard vote_*_results.src)) \
  $(TEMPLDIR)/template.wml $(TEMPLDIR)/votebar.wml
	$(WML) $(<F)
index.$(LANGUAGE).html: index.wml $(sort $(wildcard vote_*.wml)) \
  $(sort $(wildcard $(ENGLISHSRCDIR)/$(CUR_DIR)/../[0-9]*/vote_*.wml)) \
  $(TEMPLDIR)/template.wml $(TEMPLDIR)/recent_list.wml \
  $(TEMPLDIR)/votebar.wml

$(foreach i, $(basename $(sort $(wildcard suppl_*_stats.wml))), $(i).$(LANGUAGE).html): \
%.$(LANGUAGE).html: %.wml $(sort $(wildcard vote_*_index.src))
	$(WML) $(<F)

ifeq "$(LANGUAGE)" "en"

textfiles := 
#		vote_001_quorum.log  \
#		vote_001_tally.txt   vote_001_voters.txt  \
#		vote_001_results.dot vote_001_results.txt \
#		vote_001_results.png vote_001_quorum.txt  \
#		vote_001_vote.png                         \
#		vote_001_vote_detailed.png		  \
#		vote_002_quorum.log  vote_002_quorum.txt  \
#		vote_002_tally.txt   vote_002_voters.txt  \
#		vote_002_vote.png    vote_002_results.png \
#		vote_002_results.dot vote_002_results.txt \
#		vote_002_vote_detailed.png                \
#		vote_003_quorum.log  vote_003_quorum.txt  \
#		vote_003_tally.txt   vote_003_voters.txt  \
#		vote_003_vote.png    vote_003_results.png \
#		vote_003_results.dot vote_003_results.txt \
#		vote_003_vote_detailed.png                



desttextfiles := $(patsubst %,$(HTMLDIR)/%,$(textfiles))

install:: $(desttextfiles)

$(desttextfiles): $(HTMLDIR)/%: %
	@test -d $(HTMLDIR) || mkdir -m g+w -p $(HTMLDIR)
	install -m 664 -p $< $(HTMLDIR)


cleandest::
	rm -f $(desttextfiles)
endif

check:
	for i in $(sort $(wildcard *.$(LANGUAGE).html)); do                         \
         echo $$i;                                                          \
         onsgmls -e -g -s -u /usr/share/sgml/declaration/html.decl $$i;     \
         echo $$i done;                                                     \
        done

© 2014-2024 Faster IT GmbH | imprint | privacy policy