/contrib/groff/Makefile.in

https://bitbucket.org/freebsd/freebsd-head/ · Autoconf · 776 lines · 453 code · 87 blank · 236 comment · 34 complexity · f0c6227137fd98fae4df3a75a14029b9 MD5 · raw file

  1. # Copyright (C) 1989-2000, 2001, 2002, 2003, 2004, 2005
  2. # Free Software Foundation, Inc.
  3. # Written by James Clark (jjc@jclark.com)
  4. #
  5. # This file is part of groff.
  6. #
  7. # groff is free software; you can redistribute it and/or modify it under
  8. # the terms of the GNU General Public License as published by the Free
  9. # Software Foundation; either version 2, or (at your option) any later
  10. # version.
  11. #
  12. # groff is distributed in the hope that it will be useful, but WITHOUT ANY
  13. # WARRANTY; without even the implied warranty of MERCHANTABILITY or
  14. # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  15. # for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License along
  18. # with groff; see the file COPYING. If not, write to the Free Software
  19. # Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
  20. SHELL=@SHELL@
  21. srcdir=@srcdir@
  22. top_srcdir=@abs_top_srcdir@
  23. VPATH=@srcdir@
  24. top_builddir=@abs_top_builddir@
  25. # `RT_SEP' is the operating system's native PATH SEPARATOR CHAR, which
  26. # is to be used in runtime PATHs compiled into groff executables.
  27. RT_SEP=@GROFF_PATH_SEPARATOR@
  28. # `SH_SEP' is a alternative PATH SEPARATOR CHAR, to be used in shell
  29. # scripts and makefile rules; it may be the same as `RT_SEP', but,
  30. # particularly in some Microsoft environments, it may differ.
  31. SH_SEP=@PATH_SEPARATOR@
  32. version=`cat $(top_srcdir)/VERSION`
  33. # No additional number if revision is zero.
  34. revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(top_srcdir)/REVISION`
  35. # Define `page' to be letter if your PostScript printer uses 8.5x11
  36. # paper (USA) and define it to be A4, if it uses A4 paper (rest of the
  37. # world).
  38. PAGE=@PAGE@
  39. # The name of the ghostscript program. Normally, gs, on GNU/Linux
  40. # but it might be different on MS-DOS/MS-WIN32 systems.
  41. GHOSTSCRIPT=@GHOSTSCRIPT@
  42. # `ALT_GHOSTSCRIPT_PROGS' specifies a list alternative names,
  43. # which can be tried if `GHOSTSCRIPT' cannot be found at run time.
  44. ALT_GHOSTSCRIPT_PROGS=@ALT_GHOSTSCRIPT_PROGS@
  45. # Similarly, `ALT_AWK_PROGS' specifies a list of alternative names,
  46. # which can be tried at run time, to identify the awk program.
  47. ALT_AWK_PROGS=@ALT_AWK_PROGS@
  48. # Normally the Postscript driver, grops, produces output that conforms
  49. # to version 3.0 of the Adobe Document Structuring Conventions.
  50. # Unfortunately some spoolers and previewers can't handle such output.
  51. # The BROKEN_SPOOLER_FLAGS variable tells grops what it should do to
  52. # make its output acceptable to such programs. This variable controls
  53. # only the default behaviour of grops; the behaviour can be changed at
  54. # runtime by the grops -b option (and so by groff -P-b).
  55. # Use a value of 0 if your spoolers and previewers are able to handle
  56. # conforming PostScript correctly.
  57. # Add 1 if no %%{Begin,End}DocumentSetup comments should be generated;
  58. # this is needed for early versions of TranScript that get confused by
  59. # anything between the %%EndProlog line and the first %%Page: comment.
  60. # Add 2 if lines in included files beginning with %! should be
  61. # stripped out; this is needed for the OpenWindows 2.0 pageview previewer.
  62. # Add 4 if %%Page, %%Trailer and %%EndProlog comments should be
  63. # stripped out of included files; this is needed for spoolers that
  64. # don't understand the %%{Begin,End}Document comments. I suspect this
  65. # includes early versions of TranScript.
  66. # Add 8 if the first line of the PostScript output should be %!PS-Adobe-2.0
  67. # rather than %!PS-Adobe-3.0; this is needed when using Sun's Newsprint
  68. # with a printer that requires page reversal.
  69. BROKEN_SPOOLER_FLAGS=@BROKEN_SPOOLER_FLAGS@
  70. # `DEVICE' is the default device.
  71. DEVICE=ps
  72. # `XDEVDIRS' is either `font/devX{75,100}{,-12}' or empty.
  73. XDEVDIRS=@XDEVDIRS@
  74. # `XPROGDIRS' is either `src/devices/xditview src/utils/xtotroff' or empty.
  75. XPROGDIRS=@XPROGDIRS@
  76. # `XLIBDIRS' is either `src/libs/libxutil' or empty.
  77. XLIBDIRS=@XLIBDIRS@
  78. # `TTYDEVDIRS' is either `font/devascii font/devlatin1' (for
  79. # ASCII) or `font/devcp1047' (for EBCDIC) plus font/devutf8.
  80. TTYDEVDIRS=@TTYDEVDIRS@ font/devutf8
  81. # `OTHERDEVDIRS' is either `font/devlj4 font/devlbp' (for ASCII) or
  82. # empty (for EBCDIC).
  83. OTHERDEVDIRS=@OTHERDEVDIRS@
  84. # `PSPRINT' is the command to use for printing a PostScript file,
  85. # for example `lpr'.
  86. PSPRINT=@PSPRINT@
  87. # `DVIPRINT' is the command to use for printing a TeX dvi file,
  88. # for example `lpr -d'.
  89. DVIPRINT=@DVIPRINT@
  90. # Prefix for names of programs that have Unix counterparts.
  91. # For example, if `g' is `g' then troff will be installed as
  92. # gtroff. This doesn't affect programs like grops or groff that have
  93. # no Unix counterparts. Note that the groff versions of eqn and tbl
  94. # will not work with Unix troff.
  95. g=@g@
  96. # Common prefix for installation directories.
  97. # Used in definitions of exec_prefix, datasubdir, fontpath, manroot.
  98. # This must already exist when you do make install.
  99. prefix=@prefix@
  100. exec_prefix=@exec_prefix@
  101. # `bindir' says where to install executables.
  102. bindir=@bindir@
  103. # `libdir' says where to install platform-dependent data.
  104. libdir=@libdir@
  105. libprogramdir=$(libdir)/groff
  106. # `datasubdir' says where to install platform-independent data files.
  107. datadir=@datadir@
  108. dataprogramdir=$(datadir)/groff
  109. datasubdir=$(dataprogramdir)/$(version)$(revision)
  110. # `infodir' says where to install info files.
  111. infodir=@infodir@
  112. # `docdir' says where to install documentation files.
  113. docdir=$(datadir)/doc/groff/$(version)$(revision)
  114. # `exampledir' says where to install example files.
  115. exampledir=$(docdir)/examples
  116. # `htmldocdir' says where to install documentation in HTML format.
  117. htmldocdir=$(docdir)/html
  118. # `pdfdocdir' says where to install documentation in PDF format.
  119. pdfdocdir=$(docdir)/pdf
  120. # `fontdir' says where to install dev*/*.
  121. fontdir=$(datasubdir)/font
  122. # `localfontdir' says where local fonts will be installed (as dev*/*).
  123. localfontdir=$(dataprogramdir)/site-font
  124. # `legacyfontdir' is for compatibility with non-GNU troff.
  125. legacyfontdir=/usr/lib/font
  126. # `fontpath' says where to look for dev*/*.
  127. fontpath=$(localfontdir)$(RT_SEP)$(fontdir)$(RT_SEP)$(legacyfontdir)
  128. # `tmacdir' says where to install macros.
  129. tmacdir=$(datasubdir)/tmac
  130. # `systemtmacdir' says where to install platform-dependent macros.
  131. systemtmacdir=$(libprogramdir)/site-tmac
  132. # `localtmacdir' says where local files will be installed.
  133. localtmacdir=$(dataprogramdir)/site-tmac
  134. # `appresdir' says where to install the application resource file for
  135. # gxditview.
  136. appresdir=@appresdir@
  137. # `tmacpath' says where to look for macro files.
  138. # The current directory will be prepended in unsafe mode only; the home
  139. # directory will be always added.
  140. # `troffrc' and `troffrc-end' (and `eqnrc') are searched neither in the
  141. # current nor in the home directory.
  142. tmacpath=$(systemtmacdir)$(RT_SEP)$(localtmacdir)$(RT_SEP)$(tmacdir)
  143. # `sys_tmac_prefix' is prefix (if any) for system macro packages.
  144. sys_tmac_prefix=@sys_tmac_prefix@
  145. # `pnmtops_nosetpage' is the command to be run to generate an eps
  146. # file. Some versions of pnmtops provide the -nosetpage option.
  147. # We detect this and use it if present.
  148. pnmtops_nosetpage=@pnmtops_nosetpage@
  149. # `tmac_wrap' is list of system macro packages that should be made
  150. # available to groff by creating a corresponding macro package
  151. # in the groff macro directory that references the system macro
  152. # package.
  153. tmac_wrap=@tmac_wrap@
  154. # If there is a groff version of a macro package listed in $(tmac_wrap),
  155. # then the groff version will be installed with a prefix of this.
  156. # Don't make this empty.
  157. tmac_prefix=g
  158. # The groff -mm macros will be available as -m$(tmac_m_prefix)m.
  159. tmac_m_prefix=\
  160. `for i in $(tmac_wrap) ""; do case "$$i" in m) echo $(tmac_prefix);; esac; done`
  161. # The groff -ms macros will be available as -m$(tmac_s_prefix)s.
  162. tmac_s_prefix=\
  163. `for i in $(tmac_wrap) ""; do case "$$i" in s) echo $(tmac_prefix);; esac; done`
  164. # The groff -man macros will be available as -m$(tmac_an_prefix)an.
  165. tmac_an_prefix=\
  166. `for i in $(tmac_wrap) ""; do case "$$i" in an) echo $(tmac_prefix);; esac; done`
  167. # Extension to be used for refer index files. Index files are not
  168. # sharable between different architectures, so you might want to use
  169. # different suffixes for different architectures. Choose an extension
  170. # that doesn't conflict with refer or any other indexing program.
  171. indexext=.i
  172. # Directory containing the default index for refer.
  173. indexdir=/usr/dict/papers
  174. # The filename (without suffix) of the default index for refer.
  175. indexname=Ind
  176. # common_words_file is a file containing a list of common words.
  177. # If your system provides /usr/lib/eign it will be copied onto this,
  178. # otherwise the supplied eign file will be used.
  179. common_words_file=$(datasubdir)/eign
  180. # `manroot' is the root of the man page directory tree.
  181. mandir=@mandir@
  182. manroot=$(mandir)
  183. # `man1ext' is the man section for user commands.
  184. man1ext=1
  185. man1dir=$(manroot)/man$(man1ext)
  186. # `man5ext' is the man section for file formats.
  187. man5ext=5
  188. man5dir=$(manroot)/man$(man5ext)
  189. # `man7ext' is the man section for macros.
  190. man7ext=7
  191. man7dir=$(manroot)/man$(man7ext)
  192. # The configure script checks whether all necessary utility programs for
  193. # grohtml are available -- only then we can build the HTML documentation.
  194. make_html=@make_html@
  195. make_install_html=@make_install_html@
  196. # The configure script also checks whether all necessary utility programs
  197. # for pdfroff are available -- only then we can build PDF documentation.
  198. make_pdfdoc=@make_pdfdoc@
  199. make_install_pdfdoc=@make_install_pdfdoc@
  200. # DEFINES should include the following:
  201. # -DHAVE_MMAP if you have mmap() and <sys/mman.h>
  202. # -DARRAY_DELETE_NEEDS_SIZE if your C++ doesn't understand `delete []'
  203. # -DSYS_SIGLIST_DECLARED if you have sys_siglist[]
  204. # -DWCOREFLAG=0200 if the 0200 bit of the status returned by
  205. # wait() indicates whether a core image was
  206. # produced for a process that was terminated
  207. # by a signal
  208. #
  209. # -DHAVE_DIRENT_H if you have <dirent.h>
  210. # -DHAVE_LIMITS_H if you have <limits.h>
  211. # -DHAVE_CC_LIMITS_H if you have a C++ <limits.h>
  212. # -DHAVE_MATH_H if you have <math.h>
  213. # -DHAVE_CC_OSFCN_H if you have a C++ <osfcn.h>
  214. # -DHAVE_CC_INTTYPES_H if you have a C++ <inttypes.h>
  215. # -DHAVE_STDLIB_H if you have <stdlib.h>
  216. # -DHAVE_STRING_H if you have <string.h>
  217. # -DHAVE_STRINGS_H if you have <strings.h>
  218. # -DHAVE_SYS_DIR_H if you have <sys/dir.h>
  219. # -DHAVE_SYS_TIME_H if you have <sys/time.h>
  220. # -DHAVE_UNISTD_H if you have <unistd.h>
  221. #
  222. # -DHAVE_FMOD if you have fmod()
  223. # -DHAVE_GETCWD if you have getcwd()
  224. # -DHAVE_GETTIMEOFDAY if you have gettimeofday()
  225. # -DHAVE_ISATTY if you have isatty()
  226. # -DHAVE_KILL if you have kill()
  227. # -DHAVE_MKSTEMP if you have mkstemp()
  228. # -DHAVE_MMAP if you have mmap()
  229. # -DHAVE_PUTENV if you have putenv()
  230. # -DHAVE_RENAME if you have rename()
  231. # -DHAVE_SETLOCALE if you have setlocale()
  232. # -DHAVE_SNPRINTF if you have snprintf()
  233. # -DHAVE_STRCASECMP if you have strcasecmp()
  234. # -DHAVE_STRNCASECMP if you have strncasecmp()
  235. # -DHAVE_STRERROR if you have strerror()
  236. # -DHAVE_STRSEP if you have strsep()
  237. # -DHAVE_STRTOL if you have strtol()
  238. # -DHAVE_VSNPRINTF if you have vsnprintf()
  239. #
  240. # -DNEED_DECLARATION_GETTIMEOFTODAY
  241. # if your C++ <sys/time.h> doesn't declare
  242. # gettimeofday()
  243. # -DNEED_DECLARATION_HYPOT if your C++ <math.h> doesn't declare hypot()
  244. # -DNEED_DECLARATION_PCLOSE if your C++ <stdio.h> doesn't declare pclose()
  245. # -DNEED_DECLARATION_POPEN if your C++ <stdio.h> doesn't declare popen()
  246. # -DNEED_DECLARATION_PUTENV if your C++ <stdlib.h> doesn't declare
  247. # putenv()
  248. # -DNEED_DECLARATION_RAND if your C++ <stdlib.h> doesn't declare rand()
  249. # -DNEED_DECLARATION_SNPRINTF if your C++ <stdio.h> doesn't declare
  250. # snprintf()
  251. # -DNEED_DECLARATION_SRAND if your C++ <stdlib.h> doesn't declare srand()
  252. # -DNEED_DECLARATION_STRCASECMP if your C++ <string.h> doesn't declare
  253. # strcasecmp()
  254. # -DNEED_DECLARATION_STRNCASECMP
  255. # if your C++ <string.h> doesn't declare
  256. # strncasecmp()
  257. # -DNEED_DECLARATION_VFPRINTF if your C++ <stdio.h> doesn't declare
  258. # vfprintf()
  259. # -DNEED_DECLARATION_VSNPRINTF if your C++ <stdio.h> doesn't declare
  260. # vsnprintf()
  261. #
  262. # -DRET_TYPE_SRAND_IS_VOID if srand() returns void not int
  263. # -DHAVE_SYS_NERR if you have sysnerr in <errno.h> or <stdio.h>
  264. # -DHAVE_SYS_ERRLIST if you have sys_errlist in <errno.h> or
  265. # <stdio.h>
  266. # -DTRADITIONAL_CPP if your C++ compiler uses a traditional
  267. # (Reiser) preprocessor
  268. # -DLONG_FOR_TIME_T if localtime() takes a long * not a time_t *
  269. # -DHAVE_STRUCT_EXCEPTION if <math.h> defines struct exception
  270. # -DRETSIGTYPE=int if signal handlers return int not void
  271. # -DIS_EBCDIC_HOST if the host's encoding is EBCDIC
  272. # -DPAGE=A4 if the the printer's page size is A4
  273. # -DGHOSTSCRIPT=gs the name (and directory if required) of the
  274. # ghostscript program
  275. DEFINES=@DEFS@
  276. # Include
  277. #
  278. # {fmod,getcwd,mkstemp,putenv,snprintf,strcasecmp,
  279. # strerror,strncasecmp,strtol}.$(OBJEXT)
  280. #
  281. # in LIBOBJS if your C library is missing the corresponding function.
  282. # vsnprintf is defined in the snprintf.$(OBJEXT) module.
  283. LIBOBJS=@LIBOBJS@
  284. # `CCC' is the compiler for C++ (.cpp) files.
  285. CCC=@CXX@
  286. CC=@CC@
  287. # CCDEFINES are definitions for C++ compilations.
  288. CCDEFINES=$(DEFINES)
  289. # CDEFINES are definitions for C compilations.
  290. CDEFINES=$(DEFINES)
  291. CCFLAGS=@CXXFLAGS@
  292. CFLAGS=@CFLAGS@
  293. CPPFLAGS=@CPPFLAGS@
  294. LDFLAGS=@LDFLAGS@
  295. X_CFLAGS=@X_CFLAGS@
  296. X_LIBS=@X_LIBS@
  297. X_EXTRA_LIBS=@X_EXTRA_LIBS@
  298. X_PRE_LIBS=@X_PRE_LIBS@
  299. YACC=@YACC@
  300. YACCFLAGS=-v
  301. EXEEXT=@EXEEXT@
  302. OBJEXT=@OBJEXT@
  303. # a simple heuristic assumption
  304. LIBEXT=`case $(OBJEXT) in obj) echo lib;; *) echo a;; esac`
  305. LIBS=@LIBS@
  306. LIBM=@LIBM@
  307. RANLIB=@RANLIB@
  308. INSTALL=@INSTALL@
  309. INSTALL_PROGRAM=@INSTALL_PROGRAM@
  310. INSTALL_SCRIPT=@INSTALL_SCRIPT@
  311. INSTALL_DATA=@INSTALL_DATA@
  312. INSTALL_INFO=@INSTALL_INFO@
  313. LN_S=@LN_S@
  314. AR=ar
  315. ETAGS=etags
  316. ETAGSFLAGS=
  317. # Flag that tells etags to assume C++.
  318. ETAGSCCFLAG=-C
  319. # Full path to perl.
  320. PERLPATH=@PERLPATH@
  321. # Sed command with which to edit sh scripts.
  322. SH_SCRIPT_SED_CMD=@SH_SCRIPT_SED_CMD@
  323. # Sed script to deal with OS dependencies in sh scripts.
  324. SH_DEPS_SED_SCRIPT=$(top_builddir)/arch/misc/shdeps.sed
  325. # The program to create directory hierarchies.
  326. mkinstalldirs= $(SHELL) $(top_srcdir)/mkinstalldirs
  327. PURIFY=purify
  328. PURIFYCCFLAGS=
  329. #PURIFYCCFLAGS=-g++=yes \
  330. # -collector=`dirname \`$(CCC) -print-libgcc-file-name\``/ld
  331. # Passing down MAKEOVERRIDES prevents $(MAKE) from containing a second
  332. # copy of $(MDEFINES) when making individual directories; this could
  333. # cause the argument list to become too long on some systems.
  334. MDEFINES= \
  335. "ALT_AWK_PROGS=$(ALT_AWK_PROGS)" \
  336. "ALT_GHOSTSCRIPT_PROGS=$(ALT_GHOSTSCRIPT_PROGS)" \
  337. "AR=$(AR)" \
  338. "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
  339. "CC=$(CC)" \
  340. "CCC=$(CCC)" \
  341. "CCDEFINES=$(CCDEFINES)" \
  342. "CCFLAGS=$(CCFLAGS)" \
  343. "CDEFINES=$(CDEFINES)" \
  344. "CFLAGS=$(CFLAGS)" \
  345. "CPPFLAGS=$(CPPFLAGS)" \
  346. "DEVICE=$(DEVICE)" \
  347. "DVIPRINT=$(DVIPRINT)" \
  348. "ETAGS=$(ETAGS)" \
  349. "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
  350. "ETAGSFLAGS=$(ETAGSFLAGS)" \
  351. "EXEEXT=$(EXEEXT)" \
  352. "INSTALL_DATA=$(INSTALL_DATA)" \
  353. "INSTALL_INFO=$(INSTALL_INFO)" \
  354. "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
  355. "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
  356. "LDFLAGS=$(LDFLAGS)" \
  357. "LIBEXT=$(LIBEXT)" \
  358. "LIBM=$(LIBM)" \
  359. "LIBOBJS=$(LIBOBJS)" \
  360. "LIBS=$(LIBS)" \
  361. "MAKEOVERRIDES=$(MAKEOVERRIDES)" \
  362. "OBJEXT=$(OBJEXT)" \
  363. "OTHERDEVDIRS=$(OTHERDEVDIRS)" \
  364. "PAGE=$(PAGE)" \
  365. "GHOSTSCRIPT=$(GHOSTSCRIPT)" \
  366. "PERLPATH=$(PERLPATH)" \
  367. "PSPRINT=$(PSPRINT)" \
  368. "PURIFY=$(PURIFY)" \
  369. "PURIFYCCFLAGS=$(PURIFYCCFLAGS)" \
  370. "RANLIB=$(RANLIB)" \
  371. "RT_SEP=$(RT_SEP)" \
  372. "SH_SEP=$(SH_SEP)" \
  373. "SHELL=$(SHELL)" \
  374. "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \
  375. "SH_DEPS_SED_SCRIPT=$(SH_DEPS_SED_SCRIPT)" \
  376. "TTYDEVDIRS=$(TTYDEVDIRS)" \
  377. "XDEVDIRS=$(XDEVDIRS)" \
  378. "XLIBDIRS=$(XLIBDIRS)" \
  379. "XPROGDIRS=$(XPROGDIRS)" \
  380. "X_CFLAGS=$(X_CFLAGS)" \
  381. "X_LIBS=$(X_LIBS)" \
  382. "X_EXTRA_LIBS=$(X_EXTRA_LIBS)" \
  383. "X_PRE_LIBS=$(X_PRE_LIBS)" \
  384. "YACC=$(YACC)" \
  385. "YACCFLAGS=$(YACCFLAGS)" \
  386. "appresdir=$(appresdir)" \
  387. "bindir=$(bindir)" \
  388. "common_words_file=$(common_words_file)" \
  389. "datadir=$(datadir)" \
  390. "dataprogramdir=$(dataprogramdir)" \
  391. "datasubdir=$(datasubdir)" \
  392. "docdir=$(docdir)" \
  393. "exampledir=$(exampledir)" \
  394. "exec_prefix=$(exec_prefix)" \
  395. "fontdir=$(fontdir)" \
  396. "fontpath=$(fontpath)" \
  397. "g=$(g)" \
  398. "htmldocdir=$(htmldocdir)" \
  399. "pdfdocdir=$(pdfdocdir)" \
  400. "indexdir=$(indexdir)" \
  401. "indexext=$(indexext)" \
  402. "indexname=$(indexname)" \
  403. "infodir=$(infodir)" \
  404. "legacyfontdir=$(legacyfontdir)" \
  405. "libdir=$(libdir)" \
  406. "libprogramdir=$(libprogramdir)" \
  407. "localfontdir=$(localfontdir)" \
  408. "localtmacdir=$(localtmacdir)" \
  409. "make_html=$(make_html)" \
  410. "make_install_html=$(make_install_html)" \
  411. "make_pdfdoc=$(make_pdfdoc)" \
  412. "make_install_pdfdoc=$(make_install_pdfdoc)" \
  413. "man1dir=$(man1dir)" \
  414. "man1ext=$(man1ext)" \
  415. "man5dir=$(man5dir)" \
  416. "man5ext=$(man5ext)" \
  417. "man7dir=$(man7dir)" \
  418. "man7ext=$(man7ext)" \
  419. "manroot=$(manroot)" \
  420. "mkinstalldirs=$(mkinstalldirs)" \
  421. "prefix=$(prefix)" \
  422. "revision=$(revision)" \
  423. "sys_tmac_prefix=$(sys_tmac_prefix)" \
  424. "pnmtops_nosetpage=$(pnmtops_nosetpage)" \
  425. "systemtmacdir=$(systemtmacdir)" \
  426. "tmac_an_prefix=$(tmac_an_prefix)" \
  427. "tmac_m_prefix=$(tmac_m_prefix)" \
  428. "tmac_s_prefix=$(tmac_s_prefix)" \
  429. "tmac_wrap=$(tmac_wrap)" \
  430. "tmacdir=$(tmacdir)" \
  431. "tmacpath=$(tmacpath)" \
  432. "top_builddir=$(top_builddir)" \
  433. "top_srcdir=$(top_srcdir)" \
  434. "version=$(version)"
  435. INCDIRS=src/include
  436. LIBDIRS=\
  437. src/libs/libgroff \
  438. src/libs/libdriver \
  439. src/libs/libbib \
  440. $(XLIBDIRS)
  441. CCPROGDIRS=\
  442. src/roff/groff \
  443. src/roff/troff \
  444. src/preproc/tbl \
  445. src/preproc/pic \
  446. src/preproc/eqn \
  447. src/preproc/grn \
  448. src/preproc/refer \
  449. src/preproc/soelim \
  450. src/preproc/html \
  451. src/devices/grops \
  452. src/devices/grotty \
  453. src/devices/grodvi \
  454. src/devices/grolj4 \
  455. src/devices/grohtml \
  456. src/devices/grolbp \
  457. src/utils/tfmtodit \
  458. src/utils/hpftodit \
  459. src/utils/lookbib \
  460. src/utils/indxbib \
  461. src/utils/lkbib \
  462. src/utils/addftinfo
  463. CPROGDIRS=\
  464. src/utils/pfbtops \
  465. $(XPROGDIRS)
  466. PROGDEPDIRS=arch/misc
  467. PROGDIRS=$(PROGDEPDIRS) $(CCPROGDIRS) $(CPROGDIRS)
  468. DEVDIRS=\
  469. font/devps \
  470. font/devdvi \
  471. font/devhtml
  472. ALLTTYDEVDIRS=\
  473. font/devascii \
  474. font/devlatin1 \
  475. font/devutf8 \
  476. font/devcp1047
  477. # `doc' must be processed before `contrib/pdfmark'.
  478. OTHERDIRS=\
  479. man \
  480. tmac \
  481. src/utils/afmtodit \
  482. src/roff/grog \
  483. src/roff/nroff \
  484. doc \
  485. contrib/mm \
  486. contrib/pic2graph \
  487. contrib/eqn2graph \
  488. contrib/grap2graph \
  489. contrib/groffer \
  490. contrib/mom \
  491. contrib/pdfmark \
  492. contrib/gdiffmk
  493. ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \
  494. $(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS) $(OTHERDIRS)
  495. EXTRADIRS=\
  496. font/devps/generate \
  497. font/devdvi/generate \
  498. font/devlj4/generate \
  499. doc
  500. NOMAKEDIRS=\
  501. arch/djgpp \
  502. contrib/mm/examples \
  503. contrib/mm/mm \
  504. contrib/mom/examples \
  505. contrib/mom/momdoc \
  506. contrib/gdiffmk/tests \
  507. src/libs/snprintf
  508. DISTDIRS=\
  509. $(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) \
  510. $(ALLTTYDEVDIRS) $(OTHERDIRS) $(EXTRADIRS) $(NOMAKEDIRS)
  511. TARGETS=all install install_bin install_data clean distclean mostlyclean \
  512. realclean extraclean distfiles TAGS depend uninstall_sub
  513. # This ENVSETUP gork is required by the DJGPP build on Windows 9X,
  514. # where Make needs to be case-sensitive to find files like BI and VERSION.
  515. ENVSETUP=\
  516. if test -f $(srcdir)/makefile.ccpg* && \
  517. test -f $(srcdir)/Makefile.ccpg*; then \
  518. FNCASE=y; export FNCASE; \
  519. else :; \
  520. fi
  521. do=all
  522. dodirs=$(ALLDIRS) dot
  523. # Default target for subdir_Makefile
  524. subdir=src/roff/troff
  525. $(TARGETS):
  526. @$(ENVSETUP); $(MAKE) $(MDEFINES) do=$@ $(dodirs)
  527. dot: FORCE
  528. @$(ENVSETUP); \
  529. $(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
  530. -f $(top_srcdir)/Makefile.comm \
  531. -f $(top_srcdir)/Makefile.sub $(do)
  532. $(LIBDIRS): FORCE
  533. @$(ENVSETUP); \
  534. if test $(srcdir) = .; then \
  535. srcdir=.; \
  536. else \
  537. srcdir=`cd $(srcdir); pwd`/$@; \
  538. fi; \
  539. test -d $@ || $(mkinstalldirs) $@; \
  540. cd $@; \
  541. test -f Makefile.dep || touch Makefile.dep; \
  542. $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  543. -f $(top_srcdir)/Makefile.comm \
  544. -f $$srcdir/Makefile.sub \
  545. -f $(top_srcdir)/Makefile.lib \
  546. -f Makefile.dep $(do)
  547. $(CPROGDIRS): FORCE
  548. @$(ENVSETUP); \
  549. if test $(srcdir) = .; then \
  550. srcdir=.; \
  551. else \
  552. srcdir=`cd $(srcdir); pwd`/$@; \
  553. fi; \
  554. test -d $@ || $(mkinstalldirs) $@; \
  555. cd $@; \
  556. test -f Makefile.dep || touch Makefile.dep; \
  557. $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  558. -f $(top_srcdir)/Makefile.comm \
  559. -f $$srcdir/Makefile.sub \
  560. -f $(top_srcdir)/Makefile.cpg \
  561. -f Makefile.dep $(do)
  562. $(CCPROGDIRS): FORCE
  563. @$(ENVSETUP); \
  564. if test $(srcdir) = .; then \
  565. srcdir=.; \
  566. else \
  567. srcdir=`cd $(srcdir); pwd`/$@; \
  568. fi; \
  569. test -d $@ || $(mkinstalldirs) $@; \
  570. cd $@; \
  571. test -f Makefile.dep || touch Makefile.dep; \
  572. $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  573. -f $(top_srcdir)/Makefile.comm \
  574. -f $$srcdir/Makefile.sub \
  575. -f $(top_srcdir)/Makefile.ccpg \
  576. -f Makefile.dep $(do)
  577. $(DEVDIRS) $(XDEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS): FORCE
  578. @$(ENVSETUP); \
  579. if test $(srcdir) = .; then \
  580. srcdir=.; \
  581. else \
  582. srcdir=`cd $(srcdir); pwd`/$@; \
  583. fi; \
  584. test -d $@ || $(mkinstalldirs) $@; \
  585. cd $@; \
  586. $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  587. -f $(top_srcdir)/Makefile.comm \
  588. -f $$srcdir/Makefile.sub \
  589. -f $(top_srcdir)/Makefile.dev $(do)
  590. $(INCDIRS) $(PROGDEPDIRS) $(OTHERDIRS): FORCE
  591. @$(ENVSETUP); \
  592. if test $(srcdir) = .; then \
  593. srcdir=.; \
  594. else \
  595. srcdir=`cd $(srcdir); pwd`/$@; \
  596. fi; \
  597. test -d $@ || $(mkinstalldirs) $@; \
  598. cd $@; \
  599. $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  600. -f $(top_srcdir)/Makefile.comm \
  601. -f $$srcdir/Makefile.sub \
  602. -f $(top_srcdir)/Makefile.man $(do)
  603. .PHONY: dist
  604. dist:
  605. -rm -fr tmp
  606. rm -f groff-$(version)$(revision).tar.gz
  607. mkdir tmp
  608. for d in $(DISTDIRS); do \
  609. $(mkinstalldirs) tmp/$$d; \
  610. done
  611. srcdir=`cd $(srcdir); pwd`; \
  612. cd tmp; \
  613. $(LN_S) ../Makefile .; \
  614. $(LN_S) $$srcdir/* . 2>/dev/null || true; \
  615. rm -rf CVS; \
  616. for d in $(DISTDIRS); do \
  617. (cd $$d; \
  618. $(LN_S) $$srcdir/$$d/* . 2>/dev/null; \
  619. rm -rf CVS || true); \
  620. done; \
  621. $(MAKE) srcdir=. VPATH=. distfiles; \
  622. $(MAKE) srcdir=. VPATH=. extraclean; \
  623. for d in $(EXTRADIRS); do \
  624. (cd $$d; \
  625. if test -f Makefile; then \
  626. $(MAKE) extraclean; \
  627. else \
  628. $(MAKE) -f $(top_builddir)/$$d/Makefile extraclean; \
  629. fi); \
  630. done; \
  631. rm -f Makefile; \
  632. $(LN_S) $$srcdir/Makefile.init Makefile
  633. mv tmp groff-$(version)$(revision)
  634. tar cfh - groff-$(version)$(revision) | \
  635. gzip -c >groff-$(version)$(revision).tar.gz
  636. rm -fr groff-$(version)$(revision)
  637. # $(PROGDIRS): libgroff
  638. # grops grotty grodvi: libdriver
  639. # refer lookbib indxbib lkbib: libbib
  640. # $(LIBDIRS) $(PROGDIRS): include
  641. .PHONY: $(ALLDIRS) dot $(TARGETS) FORCE
  642. # Create a Makefile in $(subdir). This is useful for development since it
  643. # avoids running make recursively.
  644. subdir_Makefile: Makefile.cfg
  645. $(MAKE) do=Makefile $(subdir)
  646. Makefile.cfg: Makefile
  647. >Makefile.cfg
  648. for var in $(MDEFINES); do \
  649. echo "$$var" >>Makefile.cfg; \
  650. done
  651. Makefile: Makefile.in
  652. $(SHELL) config.status
  653. .PHONY: uninstall
  654. uninstall: uninstall_sub uninstall_dirs
  655. .PHONY: uninstall_dirs
  656. uninstall_dirs:
  657. # Use `rmdir' here so that the directories are only removed if they are empty.
  658. -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \
  659. $(tmacdir) $(systemtmacdir) $(localtmacdir) \
  660. $(fontdir) $(localfontdir) $(bindir) \
  661. $(datasubdir) $(dataprogramdir) $(infodir) \
  662. $(exampledir) $(htmldocdir) $(pdfdocdir) $(docdir) \
  663. $(libprogramdir) $(libdir) \
  664. $(datadir)/doc/groff $(datadir)/doc $(datadir) 2>/dev/null || :
  665. .PHONY: check docheck
  666. check: site.exp docheck
  667. docheck:
  668. if $(SHELL) -c "runtest --version" > /dev/null 2>&1; then \
  669. runtest; \
  670. else \
  671. echo "WARNING: could not find \`runtest'" 1>&2; \
  672. fi
  673. # This snippet has been taken from the automake package.
  674. site.exp:
  675. @echo "Making a new site.exp file..."
  676. @echo "## these variables are automatically generated by make ##" >site.tmp
  677. @echo "# Do not edit here. If you wish to override these values" >>site.tmp
  678. @echo "# edit the last section" >>site.tmp
  679. @echo "set tool groff" >>site.tmp
  680. @echo "set srcdir $(srcdir)/testsuite" >>site.tmp
  681. @echo "set objdir `pwd`" >> site.tmp
  682. @echo "## All variables above are generated by configure. Do not edit! ##" >> site.tmp
  683. @test ! -f site.exp \
  684. || sed '1,/^## All variables above are.*##/ d' site.exp >> site.tmp
  685. @-rm -f site.bak
  686. @test ! -f site.exp || mv site.exp site.bak
  687. @mv site.tmp site.exp
  688. FORCE:
  689. .NOEXPORT: