| 1 |
TEMPS = meanings.text.sort2 \ |
| 2 |
meanings.text.sort1 \ |
| 3 |
words.text \ |
| 4 |
links.dat |
| 5 |
|
| 6 |
FINALS = words.dat \ |
| 7 |
meanings.dat \ |
| 8 |
MeaningsHash.h |
| 9 |
|
| 10 |
|
| 11 |
all: $(TEMPS) $(FINALS) |
| 12 |
@echo "" |
| 13 |
@echo "All done with data conversion." |
| 14 |
@echo "" |
| 15 |
@echo "Relevant files are: " |
| 16 |
@echo " words.dat (words side of thesaurus data)" |
| 17 |
@echo " meanings.dat (meanings side of thesaurus data)" |
| 18 |
@echo " MeaningsHash.h (hash table for meanings file)" |
| 19 |
@echo "" |
| 20 |
@echo "Copy these files into your impl directory to continue." |
| 21 |
@echo "" |
| 22 |
@echo " Run \"make clean\" to delete intermediate (temporary) files." |
| 23 |
@echo " Run \"make clobber\" to delete all generated files." |
| 24 |
@echo "" |
| 25 |
|
| 26 |
start: |
| 27 |
@echo "" |
| 28 |
@echo "Beginning Data Conversion." |
| 29 |
@echo "" |
| 30 |
@echo "This makefile is creating implementation data for the " |
| 31 |
@echo "thesaurus. This is an involved process, but should " |
| 32 |
@echo "complete in under a minute on any reasonably fast " |
| 33 |
@echo "system." |
| 34 |
@echo "" |
| 35 |
|
| 36 |
clean: |
| 37 |
rm -f $(TEMPS) |
| 38 |
|
| 39 |
clobber: |
| 40 |
rm -f $(FINALS) $(TEMPS) |
| 41 |
|
| 42 |
|
| 43 |
meanings.text.sort1: meanings.text start |
| 44 |
@echo " > Sorting meanings.text (pass 1 of 2)" |
| 45 |
@../src/SortMeanings < meanings.text > meanings.text.sort1 |
| 46 |
@echo "" |
| 47 |
|
| 48 |
meanings.text.sort2 : meanings.text.sort1 |
| 49 |
@echo " > Sorting meanings.text (pass 2 of 2)" |
| 50 |
@../src/InsensitiveSorter < meanings.text.sort1 > meanings.text.sort2 |
| 51 |
@echo "" |
| 52 |
|
| 53 |
words.text : meanings.text |
| 54 |
@echo " > Building words.text from meanings.text" |
| 55 |
@../src/ExtractWords < meanings.text | ../src/InsensitiveSorter > words.text |
| 56 |
@echo "" |
| 57 |
|
| 58 |
links.dat : words.text |
| 59 |
@echo " > Building links.dat from words.text..." |
| 60 |
@../src/LinkWords --words=words.text --meanings=meanings.text.sort2 \ --output=links.dat.temp |
| 61 |
@../src/InsensitiveSorter < links.dat.temp > links.dat |
| 62 |
@rm links.dat.temp |
| 63 |
@echo "" |
| 64 |
|
| 65 |
words.dat : links.dat |
| 66 |
@echo " > Creating Words Implementation" |
| 67 |
@../src/ImplWords --links=links.dat --maxchars=17 --maxlinks=5 --out=words.dat |
| 68 |
@echo "" |
| 69 |
|
| 70 |
meanings.dat : meanings.text.sort2 words.text |
| 71 |
@echo " > Creating Meanings Implementation" |
| 72 |
@../src/ImplMeanings -m=meanings.text.sort2 -w=words.text -o=meanings.dat |
| 73 |
@echo "" |
| 74 |
|
| 75 |
MeaningsHash.h : meanings.dat |
| 76 |
@echo " > Creating Meanings Hash Data" |
| 77 |
@../src/MkOffsetTable --input=meanings.dat --split=4 > MeaningsHash.h |
| 78 |
@echo "" |
| 79 |
|