1VPATH		= $(SRC)
2PERL		= perl
3CPSRC		= $(wildcard $(SRC)/*.txt)
4CPOBJ		= $(notdir $(CPSRC))
5GENFILES	= $(patsubst %.txt,%.cp,$(CPOBJ))
6
7.SUFFIXES: .txt .cp
8
9all: $(GENFILES)
10
11# This generates codepage files where the display and filesystem
12# codepages are both the same.
13%.cp: %.txt cptable.pl UnicodeData
14	$(PERL) $(SRC)/cptable.pl $(SRC)/UnicodeData $< $< $@
15
16tidy:
17	rm -f *.cp *.bin
18
19clean: tidy
20
21dist: tidy
22
23spotless: clean
24