Commit | Line | Data |
---|---|---|
3547fd7c SL |
1 | # @(#)Makefile 4.1 %G% |
2 | ||
3 | all: spell hlist hlista hlistb hstop spellin spellout | |
4 | ||
5 | install: all | |
6 | install -s spell $(DESTDIR)/usr/lib | |
7 | install -s spellin ${DESTDIR}/usr/bin | |
8 | install -s spellout ${DESTDIR}/usr/bin | |
9 | install -c hlista $(DESTDIR)/usr/dict | |
10 | install -c hlistb $(DESTDIR)/usr/dict | |
11 | install -c hstop $(DESTDIR)/usr/dict | |
12 | install -c spell.sh $(DESTDIR)/usr/bin/spell | |
13 | ||
14 | clean: | |
15 | rm -f spell spellin hlista hlistb hlist hstop spellout | |
16 | ||
17 | spell: spell.c | |
18 | cc -s -O spell.c -o spell | |
19 | spellin: spellin.c | |
20 | cc -O -s spellin.c -o spellin | |
21 | spellout: spellout.c | |
22 | cc -O -s spellout.c -o spellout | |
23 | ||
24 | hlist: /usr/dict/words spellin | |
25 | spellin </usr/dict/words >hlist | |
26 | hlista: american local hlist spellin | |
27 | (cat american local)|spellin hlist >hlista | |
28 | hlistb: british local hlist spellin | |
29 | (cat british local)|spellin hlist >hlistb | |
30 | hstop: stop spellin | |
31 | spellin <stop >hstop |