This repository has been archived by the owner on May 15, 2022. It is now read-only.
forked from mk270/whitakers-words
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (47 loc) · 1.44 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
BUILD := gprbuild
CLEAN := gprclean
PROGRAMMES := bin/words bin/makedict bin/wakedict bin/makestem bin/makeefil bin/makeewds bin/makeinfl bin/meanings
.PHONY: all
all: $(PROGRAMMES) data
$(PROGRAMMES):
$(BUILD) -j4 -Pwords $(notdir $@)
bin/sorter:
$(BUILD) -j4 -Ptools $(notdir $@)
DICTFILE.GEN: DICTLINE.GEN bin/wakedict
echo g | bin/wakedict $< > /dev/null
mv STEMLIST.GEN STEMLIST_generated.GEN
STEMLIST.GEN: DICTLINE.GEN bin/sorter
rm -f -- $@
bin/sorter < stemlist-sort.txt > /dev/null
mv -f -- STEMLIST_new.GEN $@
rm -f STEMLIST_generated.GEN
rm -f WORK.
EWDSFILE.GEN: EWDSLIST.GEN
bin/makeefil
EWDSLIST.GEN: DICTLINE.GEN bin/makeewds
echo g | bin/makeewds $< > /dev/null
sort -o $@ $@
INFLECTS.SEC: INFLECTS.LAT bin/makeinfl
bin/makeinfl $< > /dev/null
STEMFILE.GEN: STEMLIST.GEN bin/makestem
echo g | bin/makestem $< > /dev/null
GENERATED_DATA_FILES := DICTFILE.GEN STEMFILE.GEN INDXFILE.GEN EWDSLIST.GEN \
INFLECTS.SEC EWDSFILE.GEN STEMLIST.GEN
.PHONY: data
data: $(GENERATED_DATA_FILES)
.PHONY: clean_data
clean_data:
rm -f -- $(GENERATED_DATA_FILES) CHECKEWD.
.PHONY: clean
clean:
$(CLEAN) -q -r -Pwords
$(CLEAN) -q -r -Ptools
rm -f -- CHECKEWD.
rm -f -- DICTFILE.GEN STEMFILE.GEN INDXFILE.GEN EWDSLIST.GEN INFLECTS.SEC
rm -f -- EWDSFILE.GEN
rm -f -- STEMLIST.GEN
rm -f -- WORK.
rm -f -- STEMLIST_generated.GEN STEMLIST_new.GEN
.PHONY: test
test: $(PROGRAMMES) $(GENERATED_DATA_FILES)
(cd test; ./run-tests.sh)