Debian Codegraph @

xml/Makefile

raw
1 TARGET := tables.dump
2 DUMP := perl xml2dump.pl -v
3 CHECK := xmllint --noout --postvalid
4 INDENT := xmlindent -i 4
5
6 # List of stable and supported transliteration tables
7 TABLES := din_31634.xml \
8 din_1460_bul.xml din_1460_rus.xml din_1460_ukr.xml \
9 iso_843.xml iso_9.xml iso-r_9.xml \
10 iso_8859-16_ron.xml \
11 streamlined_system_bul.xml \
12 greeklish.xml \
13 common_deu.xml common_ron.xml common_ces.xml \
14 common_slk.xml common_slv.xml common_pol.xml \
15 common_ara.xml \
16 gost_7-79_rus_old.xml gost_7-79_rus.xml \
17 gost_7-79_ukr.xml \
18 ala-lc_rus.xml \
19 devanagari_iast.xml iast_devanagari.xml \
20 bgn-pcgn_rus_standard.xml bgn-pcgn_rus_strict.xml
21
22 all: clean tables
23
24 tables:
25 $(DUMP) -o $(TARGET) $(TABLES)
26
27 all-tables:
28 $(DUMP) -o $(TARGET) $(filter-out template.xml,$(wildcard *.xml))
29
30 check: $(TABLES)
31 @for xml in $^; do \
32 echo "Checking $$xml..."; \
33 $(CHECK) $$xml; \
34 done
35
36 indent: $(TABLES) template.xml
37 @for xml in $^; do \
38 $(INDENT) $$xml | perl -pe 's/[\t ]*$$//' > $$xml.$$$$; \
39 mv $$xml.$$$$ $$xml; \
40 done
41
42 clean:
43 -rm -f $(TARGET)