home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / groff-1.09-src.lha / src / build / groff-1.09 / Makefile < prev   
Makefile  |  1994-02-21  |  13KB  |  389 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Copyright (C) 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
  3. #      Written by James Clark (jjc@jclark.com)
  4. # This file is part of groff.
  5. # groff is free software; you can redistribute it and/or modify it under
  6. # the terms of the GNU General Public License as published by the Free
  7. # Software Foundation; either version 2, or (at your option) any later
  8. # version.
  9. # groff is distributed in the hope that it will be useful, but WITHOUT ANY
  10. # WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12. # for more details.
  13. # You should have received a copy of the GNU General Public License along
  14. # with groff; see the file COPYING.  If not, write to the Free Software
  15. # Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. # Define `page' to be letter if your PostScript printer uses 8.5x11
  18. # paper (USA) and define it to be A4, if it uses A4 paper (rest of the
  19. # world).
  20. PAGE=letter
  21.  
  22. # Normally the Postscript driver, grops, produces output that conforms
  23. # to version 3.0 of the Adobe Document Structuring Conventions.
  24. # Unfortunately some spoolers and previewers can't handle such output.
  25. # The BROKEN_SPOOLER_FLAGS variable tells grops what it should do to
  26. # make its output acceptable to such programs.  This variable controls
  27. # only the default behaviour of grops; the behaviour can be changed at
  28. # runtime by the grops -b option (and so by groff -P-b).
  29. # Use a value of 0 if your spoolers and previewers are able to handle
  30. # conforming PostScript correctly.
  31. # Add 1 if no %%{Begin,End}DocumentSetup comments should be generated;
  32. # this is needed for early versions of TranScript that get confused by
  33. # anything between the %%EndProlog line and the first %%Page: comment.
  34. # Add 2 if lines in included files beginning with %! should be
  35. # stripped out; this is needed for the OpenWindows 2.0 pageview previewer.
  36. # Add 4 if %%Page, %%Trailer and %%EndProlog comments should be
  37. # stripped out of included files; this is needed for spoolers that
  38. # don't understand the %%{Begin,End}Document comments. I suspect this
  39. # includes early versions of TranScript.
  40. # Add 8 if the first line of the PostScript output should be %!PS-Adobe-2.0
  41. # rather than %!PS-Adobe-3.0; this is needed when using Sun's Newsprint
  42. # with a printer that requires page reversal.
  43. BROKEN_SPOOLER_FLAGS=7
  44.  
  45. # DEVICE is the default device.
  46. DEVICE=ps
  47.  
  48. # PSPRINT is the command to use for printing a PostScript file,
  49. # for example `lpr'.
  50. PSPRINT=
  51.  
  52. # DVIPRINT is the command to use for printing a TeX dvi file,
  53. # for example `lpr -d'.
  54. DVIPRINT=
  55.  
  56. # Prefix for names of programs that have Unix counterparts.
  57. # For example, if `g' is `g' then troff will be installed as
  58. # gtroff.  This doesn't affect programs like grops or groff that have
  59. # no Unix counterparts.  Note that the groff versions of eqn and tbl
  60. # will not work with Unix troff.  This is also use in the definitions
  61. # of tmac_s and tmac_m.
  62. g=g
  63.  
  64. # The groff ms macros will be available as -m$(tmac_s).
  65. # If you use `tmac_s=s', you can use the Unix ms macros by using
  66. # groff -ms -M/usr/lib/tmac.
  67. tmac_s=$(g)s
  68.  
  69. # Similarly, the groff mm macros will be available as -m$(tmac_m).
  70. tmac_m=$(g)m
  71.  
  72. # Common prefix for installation directories.
  73. # Used in definitions of exec_prefix, datasubdir, fontpath, manroot.
  74. # This must already exist when you do make install.
  75. prefix=/gnu
  76.  
  77. exec_prefix=${prefix}
  78.  
  79. # bindir says where to install executables.
  80. bindir=$(exec_prefix)/bin
  81.  
  82. # datasubdir says where to install data files
  83. datadir=$(prefix)/lib
  84. datasubdir=$(datadir)/groff
  85.  
  86. # fontdir says where to install dev*/*.
  87. fontdir=$(datasubdir)/font
  88.  
  89. # fontpath says where to look for dev*/*.
  90. fontpath=.:$(fontdir):$(prefix)/lib/font
  91.  
  92. # tmacdir says where to install macros.
  93. tmacdir=$(datasubdir)/tmac
  94.  
  95. # tmacpath says where to look for macro files.
  96. tmacpath=.:$(tmacdir)
  97.  
  98. # Extension to be used for refer index files.  Index files are not
  99. # sharable between different architectures, so you might want to use
  100. # different suffixes for different architectures.  Choose an extension
  101. # that doesn't conflict with refer or any other indexing program.
  102. indexext=.i
  103.  
  104. # Directory containing the default index for refer.
  105. indexdir=/gnu/dict/papers
  106.  
  107. # The filename (without suffix) of the default index for refer.
  108. indexname=Ind
  109.  
  110. # common_words_file is a file containing a list of common words.
  111. # If your system provides /usr/lib/eign it will be copied onto this,
  112. # otherwise the supplied eign file will be used.
  113. common_words_file=$(datasubdir)/eign
  114.  
  115. # manroot is the root of the man page directory tree.
  116. manroot=$(prefix)/man
  117.  
  118. # man1ext is the man section for user commands.
  119. man1ext=1
  120. man1dir=$(manroot)/man$(man1ext)
  121.  
  122. # man5ext is the man section for file formats.
  123. man5ext=5
  124. man5dir=$(manroot)/man$(man5ext)
  125.  
  126. # man7ext is the man section for macros.
  127. man7ext=7
  128. man7dir=$(manroot)/man$(man7ext)
  129.  
  130. # DEFINES should include the following:
  131. # -DHAVE_MMAP            if you have mmap() and <sys/mman.h>
  132. # -DCFRONT_ANSI_BUG        if you're using cfront 2.0 (or later?) with
  133. #                an ANSI C compiler
  134. # -DCOOKIE_BUG            if you're using gcc/g++ 2.[012] (you should
  135. #                upgrade to 2.3).
  136. # -DARRAY_DELETE_NEEDS_SIZE    if your C++ doesn't understand `delete []'
  137. # -DHAVE_SYS_SIGLIST        if you have sys_siglist[]
  138. # -DWCOREFLAG=0200        if the 0200 bit of the status returned by
  139. #                wait() indicates whether a core image was
  140. #                produced for a process that was terminated
  141. #                by a signal
  142. # -DHAVE_UNISTD_H        if you have <unistd.h>
  143. # -DHAVE_CC_OSFCN_H        if you have a C++ <osfcn.h>
  144. # -DHAVE_DIRENT_H        if you have <dirent.h>
  145. # -DHAVE_LIMITS_H        if you have <limits.h>
  146. # -DHAVE_CC_LIMITS_H        if you have a C++ <limits.h>
  147. # -DHAVE_SYS_DIR_H        if you have <sys/dir.h>
  148. # -DHAVE_STDLIB_H        if you have <stdlib.h>
  149. # -DHAVE_VFORK_H        if you have <vfork.h>
  150. # -Dvfork=fork            if you don't have a working vfork()
  151. # -DHAVE_RENAME            if you have rename()
  152. # -DHAVE_MKSTEMP        if you have mkstemp()
  153. # -DSTDLIB_H_DECLARES_GETOPT    if your C++ <stdlib.h> declares getopt()
  154. # -DUNISTD_H_DECLARES_GETOPT    if your C++ <unistd.h> declares getopt()
  155. # -DSTDLIB_H_DECLARES_PUTENV    if your C++ <stdlib.h> declares putenv()
  156. # -DSTDIO_H_DECLARES_POPEN    if your C++ <stdio.h> declares popen()
  157. # -DTRADITIONAL_CPP        if your C++ compiler uses a traditional
  158. #                (Reiser) preprocessor.
  159. # -DLONG_FOR_TIME_T        if localtime() takes a long * not a time_t *
  160. # -DHAVE_STRUCT_EXCEPTION    if <math.h> defines struct exception
  161. # -DRETSIGTYPE=int        if signal handlers return int not void    
  162. DEFINES= -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_STDLIB_H=1 -D_SYSV3=1 -DHAVE_CC_LIMITS_H=1 -DHAVE_CC_OSFCN_H=1 -DSTDLIB_H_DECLARES_GETOPT=1 -DSTDLIB_H_DECLARES_PUTENV=1 -DSTDIO_H_DECLARES_POPEN=1 -DSTDIO_H_DECLARES_PCLOSE=1 -DRETSIGTYPE=void -DHAVE_RENAME=1 -DHAVE_MKSTEMP=1 -DHAVE_SYS_SIGLIST=1
  163.  
  164. # Include fmod.o, strtol.o, getcwd.o, strerror.o, putenv.o  in LIBOBJS if
  165. # your C library is missing the corresponding function.
  166. LIBOBJS=
  167.  
  168. # CCC is the compiler for C++ (.cc) files.
  169. CCC=gcc
  170. CC=gcc
  171. # CCDEFINES are definitions for C++ compilations.
  172. CCDEFINES=$(DEFINES)
  173. # CDEFINES are definitions for C compilations.
  174. CDEFINES=$(DEFINES)
  175.  
  176. DEBUG=
  177. OPTIMIZE=-O
  178. CCFLAGS=$(DEBUG) $(OPTIMIZE)
  179. CFLAGS=$(DEBUG) $(OPTIMIZE)
  180. YACC=bison -y
  181. YACCFLAGS=-v
  182.  
  183. LIBS=
  184. CCLIBS=
  185. RANLIB=ranlib
  186. INSTALL=/bin/install -c
  187. INSTALL_PROGRAM=$(INSTALL)
  188. INSTALL_DATA=$(INSTALL) -m 644
  189. LN_S=ln
  190. AR=ar
  191. ETAGS=etags
  192. ETAGSFLAGS=
  193. # Flag that tells etags to assume C++.
  194. ETAGSCCFLAG=
  195. # Full path to perl.
  196. PERLPATH=
  197. # Sed command with which to edit sh scripts.
  198. SH_SCRIPT_SED_CMD=
  199. srcdir = /ISO/groff/groff-1.09-amiga
  200. VPATH = /ISO/groff/groff-1.09-amiga
  201.  
  202. PURIFY=purify
  203. PURIFYCCFLAGS=
  204. #PURIFYCCFLAGS=-g++=yes \
  205. #  -collector=`dirname \`$(CCC) -print-libgcc-file-name\``/ld
  206.  
  207. # Passing down MAKEOVERRIDES prevents $(MAKE) from containing a second
  208. # copy of $(MDEFINES) when making individual directories; this could
  209. # cause the argument list to become too long on some systems.
  210. MDEFINES="MAKEOVERRIDES=$(MAKEOVERRIDES)" \
  211.   "PAGE=$(PAGE)" "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
  212.   "DEVICE=$(DEVICE)" "PSPRINT=$(PSPRINT)" "DVIPRINT=$(DVIPRINT)" \
  213.   "prefix=$(prefix)" "exec_prefix=$(exec_prefix)" "bindir=$(bindir)" \
  214.   "g=$(g)" "datadir=$(datadir)" "datasubdir=$(datasubdir)" \
  215.   "fontdir=$(fontdir)" "fontpath=$(fontpath)" \
  216.   "tmacdir=$(tmacdir)" "tmacpath=$(tmacpath)" \
  217.   "indexext=$(indexext)" "indexdir=$(indexdir)" \
  218.   "indexname=$(indexname)" "common_words_file=$(common_words_file)" \
  219.   "manroot=$(manroot)" "man1ext=$(man1ext)" "man1dir=$(man1dir)" \
  220.   "man5ext=$(man5ext)" "man5dir=$(man5dir)" \
  221.   "man7ext=$(man7ext)" "man7dir=$(man7dir)" \
  222.   "tmac_s=$(tmac_s)" "tmac_m=$(tmac_m)" \
  223.   "CCC=$(CCC)" "CC=$(CC)" "CCDEFINES=$(CCDEFINES)" "CDEFINES=$(CDEFINES)" \
  224.   "CCFLAGS=$(CCFLAGS)" "CFLAGS=$(CFLAGS)" \
  225.   "YACC=$(YACC)" "YACCFLAGS=$(YACCFLAGS)" \
  226.   "LIBS=$(LIBS)" "CCLIBS=$(CCLIBS)" "LIBOBJS=$(LIBOBJS)" \
  227.   "RANLIB=$(RANLIB)" "AR=$(AR)" \
  228.   "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" "INSTALL_DATA=$(INSTALL_DATA)" \
  229.   "ETAGS=$(ETAGS)" "ETAGSFLAGS=$(ETAGSFLAGS)" "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
  230.   "PERLPATH=$(PERLPATH)" "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \
  231.   "PURIFY=$(PURIFY)" "PURIFYCCFLAGS=$(PURIFYCCFLAGS)"
  232.  
  233. SHELL=/bin/sh
  234. INCDIRS=include
  235. LIBDIRS=libgroff libdriver libbib
  236. CCPROGDIRS=groff troff tbl pic eqn grops grotty grodvi tfmtodit \
  237.   refer lookbib indxbib lkbib soelim addftinfo
  238. CPROGDIRS=pfbtops psbb
  239. PROGDIRS=$(CCPROGDIRS) $(CPROGDIRS)
  240. DEVDIRS=devps devdvi devascii devlatin1 devX75 devX75-12 devX100 devX100-12
  241. OTHERDIRS=man tmac afmtodit grog nroff mm
  242. ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(OTHERDIRS)
  243. EXTRADIRS=devps/generate devdvi/generate xditview doc
  244. DISTDIRS=$(ALLDIRS) $(EXTRADIRS)
  245. TARGETS=all install install_bin install_data clean distclean mostlyclean \
  246.   realclean extraclean distfiles TAGS depend uninstall_sub
  247.  
  248. do=all
  249. dodirs=$(ALLDIRS) dot
  250. # Default target for subdir_Makefile
  251. subdir=troff
  252.  
  253.  
  254. $(TARGETS):
  255.     @$(MAKE) $(MDEFINES) do=$@ $(dodirs)
  256.  
  257. dot: FORCE
  258.     @$(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
  259.         -f $(srcdir)/Makefile.comm -f $(srcdir)/Makefile.sub $(do)
  260.     
  261. $(LIBDIRS): FORCE
  262.     @if test $(srcdir) = .; \
  263.     then srcdir=.; \
  264.     else srcdir=`cd $(srcdir); pwd`/$@; \
  265.     fi; \
  266.     test -d $@ || mkdir $@; \
  267.     cd $@; \
  268.     $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  269.         -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
  270.             -f $$srcdir/../Makefile.lib -f $$srcdir/Makefile.dep $(do)
  271.  
  272. $(CPROGDIRS): FORCE
  273.     @if test $(srcdir) = .; \
  274.     then srcdir=.; \
  275.     else srcdir=`cd $(srcdir); pwd`/$@; \
  276.     fi; \
  277.     test -d $@ || mkdir $@; \
  278.     cd $@; \
  279.     $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  280.         -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
  281.             -f $$srcdir/../Makefile.cpg -f $$srcdir/Makefile.dep $(do)
  282.  
  283. $(CCPROGDIRS): FORCE
  284.     @if test $(srcdir) = .; \
  285.     then srcdir=.; \
  286.     else srcdir=`cd $(srcdir); pwd`/$@; \
  287.     fi; \
  288.     test -d $@ || mkdir $@; \
  289.     cd $@; \
  290.     $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  291.         -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
  292.             -f $$srcdir/../Makefile.ccpg -f $$srcdir/Makefile.dep $(do)
  293.  
  294. $(DEVDIRS): FORCE
  295.     @if test $(srcdir) = .; \
  296.     then srcdir=.; \
  297.     else srcdir=`cd $(srcdir); pwd`/$@; \
  298.     fi; \
  299.     test -d $@ || mkdir $@; \
  300.     cd $@; \
  301.     $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  302.         -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
  303.         -f $$srcdir/../Makefile.dev $(do)
  304.  
  305. $(INCDIRS) $(OTHERDIRS): FORCE
  306.     @if test $(srcdir) = .; \
  307.     then srcdir=.; \
  308.     else srcdir=`cd $(srcdir); pwd`/$@; \
  309.     fi; \
  310.     test -d $@ || mkdir $@; \
  311.     cd $@; \
  312.     $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  313.         -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
  314.             -f $$srcdir/../Makefile.man $(do)
  315.  
  316. version=`cat $(srcdir)/VERSION`
  317.  
  318. .PHONY: dist
  319. dist:
  320.     -rm -fr tmp
  321.     mkdir tmp
  322.     for d in $(DISTDIRS); do \
  323.       mkdir    tmp/$$d; \
  324.     done
  325.     srcdir=`cd $(srcdir); pwd`; \
  326.     cd tmp; \
  327.     $(LN_S) ../Makefile .; \
  328.     $(LN_S) $$srcdir/* . 2>/dev/null || true; \
  329.     for d in $(DISTDIRS); do \
  330.       (cd $$d; $(LN_S) $$srcdir/$$d/* . 2>/dev/null || true); \
  331.     done; \
  332.     $(MAKE) srcdir=$$srcdir VPATH=$$srcdir extraclean; \
  333.     for d in $(EXTRADIRS); do \
  334.       (cd $$d; $(MAKE) extraclean); \
  335.     done; \
  336.     rm -f Makefile; \
  337.     $(LN_S) $$srcdir/Makefile.init Makefile
  338.     mv tmp groff-$(version)
  339.     tar cfh - groff-$(version) | gzip -c >groff-$(version).tar.gz
  340.     rm -fr groff-$(version)
  341.  
  342. # $(PROGDIRS): libgroff
  343. # grops grotty grodvi: libdriver
  344. # refer lookbib indxbib lkbib: libbib
  345. # $(LIBDIRS) $(PROGDIRS): include
  346.  
  347. .PHONY: $(ALLDIRS) dot $(TARGETS) FORCE
  348.  
  349. subdir_Makefile: Makefile.cfg
  350.     $(MAKE) do=Makefile $(subdir)
  351.  
  352. Makefile.cfg: Makefile
  353.     >Makefile.cfg
  354.     for var in $(MDEFINES); do \
  355.       echo "$$var" >>Makefile.cfg; \
  356.     done
  357.  
  358. depend: srcdir_must_be_dot
  359.  
  360. .PHONY: srcdir_must_be_dot
  361. srcdir_must_be_dot:
  362.     @test "X$(srcdir)" = "X." \
  363.       || (echo This target can only be made in the source directory; \
  364.           exit 1)
  365.  
  366. Makefile: Makefile.in
  367.     $(SHELL) config.status
  368.  
  369. .PHONY: uninstall
  370. uninstall: uninstall_sub uninstall_dirs
  371.  
  372. .PHONY: uninstall_dirs
  373. uninstall_dirs:
  374. # Use rmdir here so that the directories are only removed if they're empty
  375.     -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \
  376.       $(tmacdir) $(fontdir) $(bindir) $(datasubdir) $(datadir)
  377.  
  378.  
  379. .PHONY: check
  380. check:
  381.  
  382. FORCE:
  383.  
  384. .NOEXPORT:
  385.