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 \ iso_843.xml iso_9.xml \ streamlined_system_bul.xml \ greeklish.xml \ common_deu.xml common_ron.xml common_ces.xml \ common_classical_mon.xml common_slk.xml \ common_slv.xml common_pol.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)