# Makefile # Based on others in ispell, mostly the one for german done # by Geoff Kuenning SHELL = /bin/sh MAKE = make CONFIG = ../../config.sh PATHADDER = ../.. BUILDHASH = ../../buildhash UNSQ = ../../unsq FIX8BIT = ../fix8bit # The following variables should be set by the superior Makefile, # based on the LANGUAGES variable in config.X. # # The DICTOPTIONS variable should be set to a list of one or more files, # separated by spaces, and selected from the following options: # # (No options defined currently) # # If you change DICTOPTIONS in your local.h file, you will have to do # "make dictclean" to clear out the old dictionary before you re-make. # DICTALWAYS = palabras.txt DICTOPTIONS = # # The following variables may be overridden by the superior Makefile, # based on the LANGUAGES variable in config.X. Note that selection of # the affix file is closely related to the dictionary chosen; don't # change the affix file unless you know what you are doing! # AFFIXES = castellano.aff # # Set this to "-vx" in the make command line if you need to # debug the complex shell commands. # SHELLDEBUG = +vx all: castellano.hash install: all $(CONFIG) @. $(CONFIG); \ set -x; \ cd $$LIBDIR; rm -f castellano.aff castellano.hash @. $(CONFIG); \ set -x; \ cp castellano.aff castellano.hash $$LIBDIR @. $(CONFIG); \ set -x; \ cd $$LIBDIR; \ chmod 644 castellano.aff castellano.hash castellano.hash: $(BUILDHASH) $(AFFIXES) castellano.dict rm -f castellano.hash $(BUILDHASH) castellano.dict $(AFFIXES) castellano.hash castellano.dict: $(DICTALWAYS) $(DICTOPTIONS) . $(CONFIG); \ eval sort -f -o castellano.dict $$MAKE_SORTTMP \ $(DICTALWAYS) $(DICTOPTIONS) # # The following dependency can be executed when ispell is unpacked, # to unpack the dictionaries. # unpack palabras.txt: $(AFFIXES) palabras.sq $(UNSQ) < palabras.sq > palabras.txt $(UNSQ): set +e; \ set $(SHELLDEBUG); \ if [ ! -x $(UNSQ) ]; \ then \ set -e; \ cd ../..; \ $(MAKE) unsq; \ else \ : ; \ fi clean: rm -f core *.hash *.stat *.cnt # # The following target is used in the English makefile, and is # required to be present in all other language Makefiles as # well, even though it doesn't have to do anything in those # directories. # kitclean: # # The following target allows you to clean out the combined # dictionary file. # dictclean: rm -f castellano.dict