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