-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (21 loc) · 677 Bytes
/
Makefile
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
LS_FILES := $(wildcard src/*.ls)
KL_FILES := $(wildcard src/*.kl)
FTX_FILES := $(wildcard src/*.ftx)
TP_FILES = $(addprefix bin/,$(notdir $(LS_FILES:.ls=.tp)))
PC_FILES = $(addprefix bin/,$(notdir $(KL_FILES:.kl=.pc)))
TX_FILES = $(addprefix bin/,$(notdir $(FTX_FILES:.ftx=.tx)))
bin/%.tp: src/%.ls
maketp $< $@
bin/%.pc: src/%.kl
ktrans $< $@
rm $(notdir $@)
bin/%.tx: src/%.ftx
kcdict $< $(dir $@)
mkdir -p src/includes
mv $(addsuffix .kl, $(basename $(notdir $<))) src/includes/$(addsuffix .kl, $(basename $(notdir $<)))
rm $(notdir $@)
rm $(addsuffix .vr, $(basename $(notdir $@)))
all: $(TP_FILES) $(TX_FILES) $(PC_FILES)
.PHONY: clean
clean:
rm bin/*.*