Debian Codegraph @

Makefile

raw
1 #
2 # $Id: Makefile,v 1.6 1994/02/07 06:07:57 geoff Exp $
3 #
4 # Copyright 1993, Geoff Kuenning, Granada Hills, CA
5 # All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
9 # are met:
10 #
11 # 1. Redistributions of source code must retain the above copyright
12 # notice, this list of conditions and the following disclaimer.
13 # 2. Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in the
15 # documentation and/or other materials provided with the distribution.
16 # 3. All modifications to the source code must be clearly marked as
17 # such. Binary redistributions based on modified source code
18 # must be clearly marked as modified versions in the documentation
19 # and/or other materials provided with the distribution.
20 # 4. All advertising materials mentioning features or use of this software
21 # must display the following acknowledgment:
22 # This product includes software developed by Geoff Kuenning and
23 # other unpaid contributors.
24 # 5. The name of Geoff Kuenning may not be used to endorse or promote
25 # products derived from this software without specific prior
26 # written permission.
27 #
28 # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
29 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31 # ARE DISCLAIMED. IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
32 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 # SUCH DAMAGE.
39 #
40 # This makefile is an example of how you might write a makefile for a
41 # simple language which has only a single dictionary available. For
42 # an example of a complex makefile, look at the makefile for English.
43 #
44 # $Log: Makefile,v $
45 # Revision 1.6 1994/02/07 06:07:57 geoff
46 # Add a dummy else clause to shell if-test for Ultrix
47 #
48 # Revision 1.5 1994/01/25 07:12:44 geoff
49 # Get rid of all old RCS log lines in preparation for the 3.1 release.
50 #
51 #
52
53 SHELL = /bin/sh
54 MAKE = make
55
56 PATHADDER = ../..
57 BUILDHASH = buildhash
58 UNSQ = unsq
59 FIX8BIT = fix8bit
60
61 #
62 # The following variables make it easy to adapt this Makefile to
63 # numerous languages.
64 #
65 LANGUAGE = espa~nol
66 DICTIONARY = $(LANGUAGE).words $(LANGUAGE).comp $(LANGUAGE).nofl
67 HASHFILE = $(LANGUAGE).hash
68
69 #
70 # The following variables may be overridden by the superior Makefile,
71 # based on the LANGUAGES variable in config.X.
72 #
73 AFFIXES = ./$(LANGUAGE).aff
74
75 all: $(HASHFILE)
76
77 e~ne:
78 sh e~nes
79
80 $(HASHFILE): $(AFFIXES) $(DICTIONARY)
81 rm -f $(HASHFILE)
82 munchlist -v -l $(AFFIXES) $(DICTIONARY) > $(LANGUAGE).words+
83 $(BUILDHASH) $(LANGUAGE).words+ $(AFFIXES) $(HASHFILE)
84
85 build:
86 $(BUILDHASH) -s $(LANGUAGE).words+ $(AFFIXES) $(HASHFILE)
87
88 install:
89 ./posti $(LANGUAGE)
90
91 $(LANGUAGE)-alt.aff: $(LANGUAGE)-alt.7bit $(FIX8BIT)
92 $(FIX8BIT) -8 < $(LANGUAGE)-alt.7bit > $(LANGUAGE)-alt.aff
93
94 #
95 # The following dependency can be executed when ispell is unpacked,
96 # to unpack the dictionaries.
97 #
98 unpack: $(AFFIXES)
99
100 $(UNSQ):
101 set +e; \
102 if [ ! -x $(UNSQ) ]; \
103 then \
104 set -e; \
105 cd ../..; \
106 $(MAKE) unsq; \
107 else \
108 : ; \
109 fi
110
111 clean:
112 rm -f core *.hash *.stat *.cnt
113
114 #
115 # The following target is used in the English makefile, and is
116 # required to be present in all other language Makefiles as
117 # well, even though it doesn't have to do anything in those
118 # directories.
119 #
120 kitclean:
121
122 #
123 # The following target is used in the English makefile, and is
124 # required to be present in all other language Makefiles as
125 # well, even though it doesn't have to do anything in those
126 # directories.
127 #
128 dictclean: