home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / update30.lzh / UPDATE30 / MAKEFILE.ST < prev    next >
Text File  |  1993-07-30  |  17KB  |  533 lines

  1. # Look over config.X before building.
  2. #
  3. # You will probably want to edit where it says "EDIT HERE" below;
  4. # the Makefile will update all other files to match.
  5. #
  6. # If you want to build non-English hash files, search for the string
  7. # "foreignhashes" and add command lines there.
  8. #
  9. # the argument syntax for buildhash to make alternate dictionary files
  10. # is simply:
  11. #
  12. #   buildhash <dictfile> <affix-file> <outfile>
  13.  
  14. # EDIT HERE
  15. #
  16. DEFINES =
  17. ARCH = -m68020 -m68881
  18. CC = cgcc $(ARCH)
  19. CFLAGS = -O2 -fomit-frame-pointer -fstrength-reduce $(DEFINES)
  20. LINTFLAGS = $(DEFINES)
  21.  
  22. HOSTCC=gcc
  23. HOSTCFLAGS= -O $(DEFINES)
  24. HOSTLIBES = 
  25.  
  26. .SUFFIXES: .oo
  27. .c.oo:
  28.     $(HOSTCC) $(HOSTCFLAGS) -o $*.oo -c $*.c
  29.  
  30. #
  31. # If you need any special libraries to get things to link, put them here.
  32. #
  33. LIBES =
  34. #
  35. # BINDIR - where to install user-executable binaries
  36. #
  37. # Don't forget CC above!
  38. BINDIR = /bin
  39. #
  40. # LIBDIR - where library files (notably the hash file) go.
  41. #
  42. LIBDIR = /lib
  43. #
  44. # DEFHASH - default name for the hash file
  45. # FOREIGNHASHES - list of other hash files
  46. #
  47. DEFHASH = english.hsh
  48. #FOREIGNHASHES = german.hash
  49. FOREIGNHASHES =
  50. #
  51. # DEFLANG - default language file to use when building DEFHASH
  52. # FOREIGNLANGS - list of other language files to use when building
  53. # FOREIGNHASHES.
  54. #
  55. DEFLANG    = english.aff
  56. #FOREIGNLANGS = german.aff
  57. FOREIGNLANGS =
  58. #
  59. # DEFDICT - default dictionary to use to build DEFHASH.  Choices, in
  60. # approximate order of increasing size: english.sml, english.sml+,
  61. # english.med, english.med+, english.lrg, english.lrg+.  Note that larger
  62. # dictionaries increase ispell's startup time.
  63. #
  64. # Note that making the "+" dictionaries requires LOTS of temp file space
  65. # (in either /usr/tmp or wherever your environment variable TMPDIR points).
  66. # The biggest, "english.lrg+", takes up to 30000 blocks of temp file space
  67. # to create.  (By contrast, the non-"+" versions take temp space of about
  68. # twice the size of the completed dictionary, except for "sml", which needs
  69. # no temp space at all).
  70. #
  71. # Also, you should be aware that the two smaller dictionaries are much more
  72. # accurate than the "lrg" and "lrg+" dictionaries.  The smaller dictionaries
  73. # have been checked for errors and are believed to be error-free, but the
  74. # ones based on "english.lrg" are known to contain spelling errors.  Because
  75. # of the nature of ispell, these errors are not fatal flaws, but you should
  76. # still be aware that they exist and be suspicious of the "lrg*" dictionaries.
  77. #
  78. # FOREIGNDICTS - list of foreign dictionaries.
  79. #
  80. DEFDICT = english.med+
  81. #FOREIGNDICTS = german.med
  82. FOREIGNDICTS =
  83. GERMANDICTS = german.0
  84. #
  85. # DICTVARIANTS - variants of the English dictionary that are desired.
  86. # Choose from "british", "american", or "altamer".  (The latter is an
  87. # extension to the American dictionary, with alternate spellings, and
  88. # should be used together with the American list).  It is possible to
  89. # include all three variants, or to add your own, if you wish.
  90. # British users should be a bit suspicious of the British lists,
  91. # especially the larger ones, as the final versions were compiled by
  92. # an American.
  93. #
  94. DICTVARIANTS = american altamer
  95. #
  96. # EXTRADICT - system dictionary (dictionaries) to be included with
  97. # the distributed dictionaries to make the "+" versions above.  Usually
  98. # /usr/dict/words, /usr/dict/web2, or both.  (Warning:  /usr/dict/web2 is
  99. # extremely big.  You don't want it in most cases.)
  100. #
  101. EXTRADICT = /usr/dict/words
  102. #
  103. # MAN1DIR - where chapter-1 man pages go
  104. #
  105. MAN1DIR    = /man/man1
  106. #
  107. # MAN4DIR - where chapter-4 man pages go
  108. #
  109. MAN4DIR    = /man/man4
  110. #
  111. # MAN1EXT - what extension to put on chapter-1 man pages
  112. #
  113. MAN1EXT    = .1
  114. #
  115. # MAN4EXT - what extension to put on chapter-4 man pages
  116. #
  117. MAN4EXT    = .4
  118. #
  119. # TERMLIB - where to get the termcap library.  Should be -ltermcap or -lcurses
  120. # on most systems.
  121. #
  122. # TERMLIB = -lcurses
  123. TERMLIB = -ltermcap
  124. #
  125. # REGLIB - where to get the regular-expression routines, if SYSTEM_LOOKUP is
  126. # not defined.  Should be -lPW on USG systems, null (I think) on BSD systems.
  127. #
  128. REGLIB =
  129. #
  130. # If your sort command accepts the -T switch to set temp file locations
  131. # (try it out;  it exists but is undocumented on some systems), make the
  132. # following variable null.  Otherwise make it the sed script.
  133. #
  134. #SORTTMP = -e '/!!SORTTMP!!/s/=.*$$/=/'
  135. SORTTMP =
  136. #
  137. # If your sort command accepts the -T switch (see above), make the following
  138. # variable refer to a temporary directory with lots of space.  Otherwise
  139. # make it null.
  140. #
  141. MAKE_SORTTMP = -T $${TMPDIR-/usr/tmp}
  142. #
  143. #    END OF EDITING
  144. #
  145. SHELL = /bin/sh
  146.  
  147. all: programs ispell.info
  148. all: $(DEFHASH)
  149. all: foreignhashes
  150.  
  151. programs: buildhash.ttp findaffix tryaffix fixdict ispell.ttp icombine munchlist
  152. programs: subset sq unsq zapdups
  153.  
  154. $(DEFHASH): buildhash.ttp $(DEFDICT) $(DEFLANG)
  155.     ./buildhash.ttp $(DEFDICT) $(DEFLANG) $(DEFHASH)
  156.  
  157. #
  158. # The following target provides an easy way to rebuild your default
  159. # dictionary when you wish to do so.  This dependency isn't all that
  160. # smart, but it tries to handle the possibility that you might have
  161. # run "make dictclean" or "make kitclean".
  162. #
  163. defaultdict:
  164.     if [ -r english.0 ]; then \
  165.         $(MAKE) -f Makefile.st DBUILD= $(DEFDICT); \
  166.     else \
  167.         $(MAKE) -f Makefile.st BUILD= $(DEFDICT); \
  168.     fi
  169.  
  170. install: all
  171.     cd $(BINDIR); rm -f ispell buildhash munchlist findaffix tryaffix
  172.     cp ispell buildhash munchlist findaffix tryaffix sq unsq $(BINDIR)
  173.     cd $(LIBDIR); rm -f $(DEFHASH) $(DEFLANG) $(FOREIGNHASHES) \
  174.       $(FOREIGNLANGS) icombine
  175.     cp $(DEFHASH) $(DEFLANG) $(FOREIGNHASHES) $(FOREIGNLANGS) icombine \
  176.       $(LIBDIR)
  177.     chmod 755 $(LIBDIR)/icombine $(BINDIR)/ispell $(BINDIR)/munchlist \
  178.       $(BINDIR)/findaffix $(BINDIR)/tryaffix $(BINDIR)/buildhash \
  179.       $(BINDIR)/sq $(BINDIR)/unsq
  180.     cd $(LIBDIR); chmod 644 $(DEFHASH) $(DEFLANG) \
  181.       $(FOREIGNHASHES) $(FOREIGNLANGS)
  182.     rm -f $(MAN1DIR)/ispell$(MAN1EXT) $(MAN4DIR)/ispell$(MAN4EXT) \
  183.       $(MAN4DIR)/english$(MAN4EXT)
  184.     cp ispell.1 $(MAN1DIR)/ispell$(MAN1EXT)
  185.     cp sq.1 $(MAN1DIR)/sq$(MAN1EXT)
  186.     cp ispell.4 $(MAN4DIR)/ispell$(MAN4EXT)
  187.     cp english.4 $(MAN4DIR)/english$(MAN4EXT)
  188.     if [ -d $(ELISPDIR) ]; then \
  189.         rm -f $(TEXINFODIR)/ispell $(ELISPDIR)/ispell.el; \
  190.         cp ispell.info $(TEXINFODIR)/ispell; \
  191.         chmod 644 $(TEXINFODIR)/ispell; \
  192.         cp ispell.el $(ELISPDIR); \
  193.         echo '(byte-compile-file "$(ELISPDIR)/ispell.el")' \
  194.           > /tmp/emi$$$$; \
  195.         $(EMACS) -batch $(ELISPDIR)/ispell.el -l /tmp/emi$$$$; \
  196.         rm -f /tmp/emi$$$$; \
  197.         chmod 644 $(ELISPDIR)/ispell.el $(ELISPDIR)/ispell.elc; \
  198.     fi
  199.  
  200. ispell.info:    ispell.texinfo
  201.     if [ -d $(ELISPDIR) ]; then \
  202.         $(EMACS) -batch dummy -i ispell.texinfo \
  203.           -f texinfo-format-buffer -f save-buffer; \
  204.         rm -f ispell.info~; \
  205.     fi
  206.  
  207. fix-dictionary:    all
  208.     PATH=:$$PATH sh fixdict $(DEFDICT)
  209.  
  210. munchable:    findaffix tryaffix munchlist buildhash.ttp ispell.ttp icombine sq unsq
  211.  
  212. munch-dictionary:    munchable
  213.     PATH=:$$PATH munchlist -l $(DEFLANG) $(DEFDICT)
  214.  
  215. #
  216. #    Dependencies to build extra hash files
  217. #
  218. allhashes:    normhashes plushashes foreignhashes
  219. normhashes:    sml.hash med.hash lrg.hash
  220. plushashes:    sml+.hash med+.hash lrg+.hash
  221.  
  222. #
  223. #    Add dependencies here to build non-English hash files.
  224. #
  225. foreignhashes: $(FOREIGNHASHES)
  226.  
  227. german.hash:    buildhash.ttp german.aff german.med
  228.     rm -f german.hash
  229.     if [ "$(DEFDICT)" = german.med ]; then \
  230.         make -f Makefile.st $(DEFHASH); ln $(DEFHASH) $@; \
  231.     else \
  232.         ./buildhash.ttp german.med german.aff $@; \
  233.     fi
  234.  
  235. $(DBUILD)german.med:    munchable $(GERMANDICTS)
  236.     PATH=:$$PATH munchlist -l german.aff $(GERMANDICTS) > german.med
  237.  
  238. #
  239. # Note that we don't use $(MAKE) in the following dependencies.  There
  240. # is a good reason for this -- if we did, "make -n" would still run buildhash.
  241. #
  242. sml.hash:    buildhash.ttp english.aff english.sml
  243.     rm -f sml.hash
  244.     if [ "$(DEFDICT)" = english.sml ]; then \
  245.         make -f Makefile.st $(DEFHASH); ln $(DEFHASH) $@; \
  246.     else \
  247.         ./buildhash.ttp english.sml english.aff $@; \
  248.     fi
  249.  
  250. sml+.hash:    buildhash.ttp english.aff english.sml+
  251.     rm -f sml+.hash
  252.     if [ "$(DEFDICT)" = english.sml+ ]; then \
  253.         make -f Makefile.st $(DEFHASH); ln $(DEFHASH) $@; \
  254.     else \
  255.         ./buildhash.ttp english.sml+ english.aff $@; \
  256.     fi
  257.  
  258. med.hash:    buildhash.ttp english.aff english.med
  259.     rm -f med.hash
  260.     if [ "$(DEFDICT)" = english.med ]; then \
  261.         make -f Makefile.st $(DEFHASH); ln $(DEFHASH) $@; \
  262.     else \
  263.         ./buildhash.ttp english.med english.aff $@; \
  264.     fi
  265.  
  266. med+.hash:    buildhash.ttp english.aff english.med+
  267.     rm -f med+.hash
  268.     if [ "$(DEFDICT)" = english.med+ ]; then \
  269.         make -f Makefile.st $(DEFHASH); ln $(DEFHASH) $@; \
  270.     else \
  271.         ./buildhash.ttp english.med+ english.aff $@; \
  272.     fi
  273.  
  274. lrg.hash:    buildhash.ttp english.aff english.lrg
  275.     rm -f lrg.hash
  276.     if [ "$(DEFDICT)" = english.lrg ]; then \
  277.         make -f Makefile.st $(DEFHASH); ln $(DEFHASH) $@; \
  278.     else \
  279.         ./buildhash.ttp english.lrg english.aff $@; \
  280.     fi
  281.  
  282. lrg+.hash:    buildhash.ttp english.aff english.lrg+
  283.     rm -f lrg+.hash
  284.     if [ "$(DEFDICT)" = english.lrg+ ]; then \
  285.         make -f Makefile.st $(DEFHASH); ln $(DEFHASH) $@; \
  286.     else \
  287.         ./buildhash.ttp english.lrg+ english.aff $@; \
  288.     fi
  289.  
  290. #
  291. #    The six dictionaries, english.sml through english.lrg+, are built
  292. #    by the following dependencies.  The macros "CBUILD" and
  293. #    "DBUILD" are a sneaky trick used to keep make from trying to
  294. #    run munchlist every time a minor change is made to one of the
  295. #    C programs.  If you define these macros as null, "make all"
  296. #    will automatically build the dictionaries.  If you leave them
  297. #    with their default definitions, "make all" will leave the
  298. #    dictionaries alone, and you will have to type something like
  299. #    "make buildenglish.med+" to build the dictionary using
  300. #    munchlist.
  301. #
  302. #    Why two macros?  So you can delete {eng,amer,altamer,brit}.[012].??
  303. #    to save space, and still type "make DBUILD= all".
  304. #
  305. #    The following dependencies are convenient ways to make some or
  306. #    all of the dictionaries.
  307. #
  308. BUILD    =    build
  309. CBUILD    =    $(BUILD)
  310. DBUILD    =    $(BUILD)
  311.  
  312. alldicts:    normdicts plusdicts
  313. normdicts:    $(DBUILD)english.sml $(DBUILD)english.med $(DBUILD)english.lrg
  314. plusdicts:    $(DBUILD)english.sml+ $(DBUILD)english.med+
  315. plusdicts:    $(DBUILD)english.lrg+
  316.  
  317. dictcomponents:    $(CBUILD)english.0 $(CBUILD)english.1 $(CBUILD)english.2
  318. dictcomponents: $(CBUILD)american.0 $(CBUILD)american.1 $(CBUILD)american.2
  319. dictcomponents: $(CBUILD)altamer.0 $(CBUILD)altamer.1 $(CBUILD)altamer.2
  320. dictcomponents: $(CBUILD)british.0 $(CBUILD)british.1 $(CBUILD)british.2
  321.  
  322. $(CBUILD)english.0:    unsq eng.0.??
  323.     cat eng.0.?? | ./unsq > english.0
  324.  
  325. $(CBUILD)english.1:    unsq eng.1.??
  326.     cat eng.1.?? | ./unsq > english.1
  327.  
  328. $(CBUILD)english.2:    unsq eng.2.??
  329.     cat eng.2.?? | ./unsq > english.2
  330.  
  331. $(CBUILD)american.0:    unsq amer.0.??
  332.     cat amer.0.?? | ./unsq > american.0
  333.  
  334. $(CBUILD)american.1:    unsq amer.1.??
  335.     cat amer.1.?? | ./unsq > american.1
  336.  
  337. $(CBUILD)american.2:    unsq amer.2.??
  338.     cat amer.2.?? | ./unsq > american.2
  339.  
  340. $(CBUILD)altamer.0:    unsq altamer.0.??
  341.     cat altamer.0.?? | ./unsq > altamer.0
  342.  
  343. $(CBUILD)altamer.1:    unsq altamer.1.??
  344.     cat altamer.1.?? | ./unsq > altamer.1
  345.  
  346. $(CBUILD)altamer.2:    unsq altamer.2.??
  347.     cat altamer.2.?? | ./unsq > altamer.2
  348.  
  349. $(CBUILD)british.0:    unsq brit.0.??
  350.     cat brit.0.?? | ./unsq > british.0
  351.  
  352. $(CBUILD)british.1:    unsq brit.1.??
  353.     cat brit.1.?? | ./unsq > british.1
  354.  
  355. $(CBUILD)british.2:    unsq brit.2.??
  356.     cat brit.2.?? | ./unsq > british.2
  357.  
  358. $(DBUILD)english.sml:    english.0 american.0 altamer.0 british.0
  359.     dicts="english.0"; \
  360.         for i in $(DICTVARIANTS); do \
  361.         dicts="$$dicts $$i.0"; \
  362.         done; \
  363.         set -x; \
  364.         sort -u -t/ +0f -1 +0 $(MAKE_SORTTMP) -o english.sml $$dicts
  365.  
  366. $(DBUILD)english.sml+:    munchable $(EXTRADICT)
  367. $(DBUILD)english.sml+:    english.0 american.0 altamer.0 british.0
  368.     dicts="english.0 $(EXTRADICT)"; \
  369.         for i in $(DICTVARIANTS); do \
  370.         dicts="$$dicts $$i.0"; \
  371.         done; \
  372.         set -x; \
  373.         PATH=:$$PATH munchlist -l $(DEFLANG) $$dicts > english.sml+
  374.  
  375. $(DBUILD)english.med:    english.0 american.0 altamer.0 british.0
  376. $(DBUILD)english.med:    english.1 american.1 altamer.1 british.1
  377.     dicts="english.0 english.1"; \
  378.         for i in $(DICTVARIANTS); do \
  379.         dicts="$$dicts $$i.0 $$i.1"; \
  380.         done; \
  381.         set -x; \
  382.         sort -u -t/ +0f -1 +0 $(MAKE_SORTTMP) -o english.med $$dicts
  383.  
  384. $(DBUILD)english.med+:    munchable $(EXTRADICT)
  385. $(DBUILD)english.med+:    english.0 american.0 altamer.0 british.0
  386. $(DBUILD)english.med+:    english.1 american.1 altamer.1 british.1
  387.     dicts="english.0 english.1 $(EXTRADICT)"; \
  388.         for i in $(DICTVARIANTS); do \
  389.         dicts="$$dicts $$i.0 $$i.1"; \
  390.         done; \
  391.         set -x; \
  392.         PATH=:$$PATH munchlist -l $(DEFLANG) $$dicts > english.med+
  393.  
  394. $(DBUILD)english.lrg:    english.0 american.0 altamer.0 british.0
  395. $(DBUILD)english.lrg:    english.1 american.1 altamer.1 british.1
  396. $(DBUILD)english.lrg:    english.2 american.2 altamer.2 british.2
  397.     dicts="english.0 english.1 english.2"; \
  398.         for i in $(DICTVARIANTS); do \
  399.         dicts="$$dicts $$i.0 $$i.1 $$i.2"; \
  400.         done; \
  401.         set -x; \
  402.         sort -u -t/ +0f -1 +0 $(MAKE_SORTTMP) -o english.lrg $$dicts
  403.  
  404. $(DBUILD)english.lrg+:    munchable $(EXTRADICT)
  405. $(DBUILD)english.lrg+:    english.0 american.0 altamer.0 british.0
  406. $(DBUILD)english.lrg+:    english.1 american.1 altamer.1 british.1
  407. $(DBUILD)english.lrg+:    english.2 american.2 altamer.2 british.2
  408.     dicts="english.0 english.1 english.2 $(EXTRADICT)"; \
  409.         for i in $(DICTVARIANTS); do \
  410.         dicts="$$dicts $$i.0 $$i.1 $$i.2"; \
  411.         done; \
  412.         set -x; \
  413.         PATH=:$$PATH munchlist -l $(DEFLANG) $$dicts > english.lrg+
  414.  
  415. buildhash.ttp: buildhash.o hash.o makedent.o parse.o
  416.     $(CC) $(CFLAGS) -o buildhash.ttp buildhash.o hash.o makedent.o parse.o \
  417.       $(LIBES)
  418.  
  419. icombine: icombine.oo makedent.oo parse.oo
  420.     $(HOSTCC) $(HOSTCFLAGS) -o icombine icombine.oo makedent.oo parse.oo \
  421.       $(HOSTLIBES)
  422.  
  423. EDITFILE    =    notthere
  424. OUTFILE        =    /dev/null
  425.  
  426. doedit:
  427.     sed -e 's@!!LIBDIR!!@$(LIBDIR)@' -e 's@!!DEFDICT!!@$(DEFDICT)@' \
  428.         -e 's@!!DEFHASH!!@$(DEFHASH)@' -e 's@!!DEFLANG!!@$(DEFLANG)@' \
  429.         $(SORTTMP) < $(EDITFILE) > $(OUTFILE)
  430.  
  431. findaffix:    findaffix.X Makefile.st
  432.     $(MAKE) -f Makefile.st EDITFILE=findaffix.X OUTFILE=findaffix doedit
  433.     chmod +x findaffix
  434.  
  435. fixdict:    fixdict.X Makefile.st
  436.     $(MAKE) -f Makefile.st EDITFILE=fixdict.X OUTFILE=fixdict doedit
  437.     chmod +x fixdict
  438.  
  439. munchlist:    munchlist.X Makefile.st
  440.     $(MAKE) -f Makefile.st EDITFILE=munchlist.X OUTFILE=munchlist doedit
  441.     chmod +x munchlist
  442.  
  443. subset:    subset.X Makefile.st
  444.     $(MAKE) -f Makefile.st EDITFILE=subset.X OUTFILE=subset doedit
  445.     chmod +x subset
  446.  
  447. tryaffix:    tryaffix.X Makefile.st
  448.     $(MAKE) -f Makefile.st EDITFILE=tryaffix.X OUTFILE=tryaffix doedit
  449.     chmod +x tryaffix
  450.  
  451. zapdups:    zapdups.X Makefile.st
  452.     $(MAKE) -f Makefile.st EDITFILE=zapdups.X OUTFILE=zapdups doedit
  453.     chmod +x zapdups
  454.  
  455. OBJS    =    ispell.o correct.o defmt.o dump.o good.o lookup.o hash.o \
  456.         makedent.o term.o tgood.o tree.o xgets.o
  457.  
  458. ispell.ttp: $(OBJS)
  459.     $(CC) $(CFLAGS) -o ispell.ttp $(OBJS) $(TERMLIB) $(REGLIB) $(LIBES)
  460.     sym-ld -v -o ispell.sym /net/acae127/home/bammi/atari/cross-gcc/lib/crt0.o $(OBJS) $(TERMLIB) $(REGLIB) $(LIBES) -lgnu
  461.  
  462. $(OBJS) buildhash.o icombine.o hash.o parse.o: config.h ispell.h local.h msgs.h
  463. ispell.o: version.h
  464.  
  465. buildhash.oo icombine.oo hash.oo parse.oo: config.h ispell.h local.h msgs.h
  466. ispell.oo: version.h
  467.  
  468. config.h:    config.X Makefile.st
  469.     $(MAKE) -f Makefile.st EDITFILE=config.X OUTFILE=config.h doedit
  470.  
  471. #    Create a sample local.h if no such file currently exists
  472. local.h: atari.h
  473.     cp atari.h local.h
  474.  
  475. tags:    config.h *.[chy]
  476.     ctags -w -t *.[chy]
  477.     sed -e s/config.h/config.X/ tags > ntags
  478.     mv ntags tags
  479.  
  480. TAGS:    config.h *.[chy]
  481.     etags -t *.[chy]
  482.     sed -e s/config.h/config.X/ TAGS > NTAGS
  483.     mv NTAGS TAGS
  484.  
  485. lint:    config.h ispell.h msgs.h *.[cy]
  486.     @$(LINT) $(LINTFLAGS) ispell.c correct.c defmt.c dump.c good.c \
  487.         hash.c lookup.c makedent.c tgood.c term.c tree.c xgets.c
  488.     @yacc parse.y
  489.     @$(LINT) $(LINTFLAGS) buildhash.c hash.c makedent.c y.tab.c
  490.     @$(LINT) $(LINTFLAGS) icombine.c makedent.c y.tab.c
  491.     @rm -f y.tab.c
  492.  
  493. clean:
  494.     rm -f *.o *.oo core a.out mon.out hash.out \
  495.         *.stat *.cnt config.h $(DEFHASH) $(FOREIGNHASHES)
  496.     rm -f buildhash findaffix tryaffix fixdict ispell icombine \
  497.         munchlist subset sq unsq zapdups *.ttp
  498.  
  499. #
  500. #    The following target allows you to clean out the leftover raw
  501. #    files gotten from unpacking the kit.  It makes sure that you
  502. #    have the combined files first, so it may take a little while
  503. #    to run.
  504. #
  505. kitclean:
  506.     $(MAKE) -f Makefile.st dictcomponents
  507.     rm -f eng.[012].?? amer.[012].?? altamer.[012].?? brit.[012].??
  508.  
  509. #
  510. #    The following target allows you to clean out the combined
  511. #    dictionary files.  For safety, so you don't lose your files,
  512. #    it makes sure that there is something to work from, but it can
  513. #    only be so smart, so be careful!
  514. #
  515. dictclean:
  516.     rm -f english.sml english.sml+ english.med english.med+
  517.     rm -f english.lrg english.lrg+
  518.     ok=yes; \
  519.         for i in eng amer altamer brit; do \
  520.         for j in 0 1 2; do \
  521.             [ -r $$i.$$j.aa ]  ||  ok=no; \
  522.         done; \
  523.         done; \
  524.         if [ $$ok = yes ]; then \
  525.         rm -f english.[012] american.[012]; \
  526.         rm -f altamer.[012] british.[012]; \
  527.         fi
  528.  
  529.  
  530.  
  531.  
  532.  
  533.