1 VPATH = $(SRC) 2 PERL = perl 3 CPSRC = $(wildcard $(SRC)/*.txt) 4 CPOBJ = $(notdir $(CPSRC)) 5 GENFILES = $(patsubst %.txt,%.cp,$(CPOBJ)) 6 7 .SUFFIXES: .txt .cp 8 9 all: $(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 16 tidy: 17 rm -f *.cp *.bin 18 19 clean: tidy 20 21 dist: tidy 22 23 spotless: clean 24