1 | # $Id: Makefile.athena,v 1.2 1998-01-31 03:56:57 ghudson Exp $ |
---|
2 | |
---|
3 | SHELL=/bin/sh |
---|
4 | IMAN=buildhash.1 findaffix.1 munchlist.1 tryaffix.1 |
---|
5 | SMAN=unsq.1 |
---|
6 | ATHBINDIR=/usr/athena/bin |
---|
7 | ATHSHAREDIR=/usr/athena/share |
---|
8 | ATHMANDIR=/usr/athena/man |
---|
9 | ATHINFODIR=/usr/athena/info |
---|
10 | |
---|
11 | prepare: |
---|
12 | rm -f local.h |
---|
13 | sed -e "s,@COMPILER@,$$COMPILER," "local.h.$$HOSTTYPE" > local.h |
---|
14 | |
---|
15 | clean: |
---|
16 | ${MAKE} clean |
---|
17 | rm -f ${IMAN} ${SMAN} |
---|
18 | |
---|
19 | all: ${IMAN} ${SMAN} |
---|
20 | ${MAKE} all |
---|
21 | |
---|
22 | ${IMAN}: |
---|
23 | rm -f $@ |
---|
24 | echo ".so man1/ispell.1" > $@ |
---|
25 | |
---|
26 | ${SMAN}: |
---|
27 | rm -f $@ |
---|
28 | echo ".so man1/sq.1" > $@ |
---|
29 | |
---|
30 | check: |
---|
31 | |
---|
32 | # The Makefile install rule is horribly complicated, and supporting |
---|
33 | # DESTDIR there is probably more of a maintenance hassle than doing it |
---|
34 | # directly here. |
---|
35 | install: |
---|
36 | -mkdir -p "$$SRVD${ATHBINDIR}" |
---|
37 | -mkdir -p "$$SRVD${ATHSHAREDIR}" |
---|
38 | -mkdir -p "$$SRVD${ATHMANDIR}/man1" |
---|
39 | -mkdir -p "$$SRVD${ATHMANDIR}/man4" |
---|
40 | -mkdir -p "$$SRVD${ATHINFODIR}" |
---|
41 | install -c -m 555 buildhash "$$SRVD${ATHBINDIR}" |
---|
42 | install -c -m 555 findaffix "$$SRVD${ATHBINDIR}" |
---|
43 | install -c -m 555 icombine "$$SRVD${ATHBINDIR}" |
---|
44 | install -c -m 555 ijoin "$$SRVD${ATHBINDIR}" |
---|
45 | install -c -m 555 ispell "$$SRVD${ATHBINDIR}" |
---|
46 | install -c -m 555 munchlist "$$SRVD${ATHBINDIR}" |
---|
47 | install -c -m 555 sq "$$SRVD${ATHBINDIR}" |
---|
48 | install -c -m 555 tryaffix "$$SRVD${ATHBINDIR}" |
---|
49 | install -c -m 555 unsq "$$SRVD${ATHBINDIR}" |
---|
50 | install -c -m 444 languages/english/english.aff "$$SRVD${ATHSHAREDIR}" |
---|
51 | install -c -m 444 languages/american/americanmed+.hash \ |
---|
52 | "$$SRVD${ATHSHAREDIR}" |
---|
53 | rm -f "$$SRVD${ATHSHAREDIR}/american.hash" |
---|
54 | cd "$$SRVD${ATHSHAREDIR}" && ln americanmed+.hash american.hash |
---|
55 | rm -f "$$SRVD${ATHSHAREDIR}/english.hash" |
---|
56 | cd "$$SRVD${ATHSHAREDIR}" && ln americanmed+.hash english.hash |
---|
57 | install -c -m 444 buildhash.1 "$$SRVD${ATHMANDIR}/man1" |
---|
58 | install -c -m 444 findaffix.1 "$$SRVD${ATHMANDIR}/man1" |
---|
59 | install -c -m 444 ispell.1 "$$SRVD${ATHMANDIR}/man1" |
---|
60 | install -c -m 444 munchlist.1 "$$SRVD${ATHMANDIR}/man1" |
---|
61 | install -c -m 444 sq.1 "$$SRVD${ATHMANDIR}/man1" |
---|
62 | install -c -m 444 tryaffix.1 "$$SRVD${ATHMANDIR}/man1" |
---|
63 | install -c -m 444 unsq.1 "$$SRVD${ATHMANDIR}/man1" |
---|
64 | install -c -m 444 ispell.4 "$$SRVD${ATHMANDIR}/man4" |
---|
65 | install -c -m 444 languages/english/english.4l \ |
---|
66 | "$$SRVD${ATHMANDIR}/man4" |
---|
67 | install -c -m 444 ispell.info "$$SRVD${ATHINFODIR}/ispell" |
---|