aboutsummaryrefslogtreecommitdiffstats
path: root/english/MailingLists/Makefile
blob: 406b5100ef6326f74faaf6fad5b553d6a4e36975 (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
# If this makefile is not generic enough to support a translation,
# please contact debian-www.

WMLBASE=..
CUR_DIR=MailingLists
SUBS=

GETTEXTFILES += others.mo

CAPATH=$(shell dir=/etc/ssl/ca-debian ; test -d $$dir && echo --ca-directory=$$dir)

include $(WMLBASE)/Make.lang

ifeq "$(LANGUAGE)" "zh"
all:: $(foreach sl,$(SUBLANG),subscribe.$(LANGUAGE)-$(sl).html unsubscribe.$(LANGUAGE)-$(sl).html )
install:: $(foreach sl,$(SUBLANG),$(HTMLDIR)/subscribe.$(LANGUAGE)-$(sl).html $(HTMLDIR)/unsubscribe.$(LANGUAGE)-$(sl).html )
else
all:: subscribe.$(LANGUAGE).html unsubscribe.$(LANGUAGE).html
install:: $(HTMLDIR)/subscribe.$(LANGUAGE).html $(HTMLDIR)/unsubscribe.$(LANGUAGE).html
endif

clean::
	rm -f subscribe.wml unsubscribe.wml 
ifeq "$(LANGUAGE)" "en"
	rm -f lists.cfg
endif

mklist := $(ENGLISHDIR)/$(CUR_DIR)/mklist
lists.cfg := $(ENGLISHDIR)/$(CUR_DIR)/lists.cfg
descfiles := $(shell find $(ENGLISHDIR)/$(CUR_DIR)/desc -type f \
                      ! -path '*/CVS/*' ! -name introduction \
                      ! -name subscription ! -name advertising ! -name README | sort)
ifneq "$(sort $(wildcard desc))" ""
descfiles := $(shell find desc -type f ! -path '*/CVS/*' ! -name introduction \
                      ! -name subscription ! -name advertising ! -name README | sort)
endif

subscribe.wml: $(mklist) $(lists.cfg) $(descfiles) $(mklist).tags
	$(mklist) -f $(lists.cfg) -s

unsubscribe.wml: $(mklist) $(lists.cfg) $(descfiles) $(mklist).tags
	$(mklist) -f $(lists.cfg) -u

ifeq "$(LANGUAGE)" "en"
mailing-lists.txt: $(mklist) $(lists.cfg) $(descfiles)
	$(mklist) -f $(lists.cfg) -t
$(lists.cfg):
	wget $(CAPATH) -O lists.cfg https://lists.debian.org/lists.cfg
else
mailing-lists.$(LANGUAGE).txt: $(mklist) $(lists.cfg) $(descfiles)
	$(mklist) -f $(lists.cfg) -t && mv mailing-lists.txt mailing-lists.$(LANGUAGE).txt
endif

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