aboutsummaryrefslogtreecommitdiffstats
path: root/codepage/Makefile
blob: af5258aa5917a7017e17b0b684b642fc328ef6c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
VPATH		= $(SRC)
PERL		= perl
CPSRC		= $(sort $(wildcard $(SRC)/*.txt))
CPOBJ		= $(notdir $(CPSRC))
GENFILES	= $(patsubst %.txt,%.cp,$(CPOBJ))

.SUFFIXES: .txt .cp

all: $(GENFILES)

# This generates codepage files where the display and filesystem
# codepages are both the same.
%.cp: %.txt cptable.pl UnicodeData
	$(PERL) $(SRC)/cptable.pl $(SRC)/UnicodeData $< $< $@

tidy:
	rm -f *.cp *.bin

clean: tidy

dist: tidy

spotless: clean