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
|
TARGET := tables.dump
DUMP := perl xml2dump.pl -v
CHECK := xmllint --noout --postvalid
INDENT := xmlindent -i 4
# List of stable and supported transliteration tables
TABLES := din_31634.xml \
din_1460_bul.xml din_1460_rus.xml din_1460_ukr.xml \
iso_843.xml iso_9.xml iso-r_9.xml \
iso_8859-16_ron.xml \
streamlined_system_bul.xml \
greeklish.xml \
common_deu.xml common_ron.xml common_ces.xml \
common_slk.xml common_slv.xml common_pol.xml \
common_ara.xml \
gost_7-79_rus_old.xml gost_7-79_rus.xml \
gost_7-79_ukr.xml \
ala-lc_rus.xml \
devanagari_iast.xml iast_devanagari.xml \
bgn-pcgn_rus_standard.xml bgn-pcgn_rus_strict.xml
all: clean tables
tables:
$(DUMP) -o $(TARGET) $(TABLES)
all-tables:
$(DUMP) -o $(TARGET) $(filter-out template.xml,$(wildcard *.xml))
check: $(TABLES)
@for xml in $^; do \
echo "Checking $$xml..."; \
$(CHECK) $$xml; \
done
indent: $(TABLES) template.xml
@for xml in $^; do \
$(INDENT) $$xml | perl -pe 's/[\t ]*$$//' > $$xml.$$$$; \
mv $$xml.$$$$ $$xml; \
done
clean:
-rm -f $(TARGET)
|