* doc/groff.texinfo: Removed all occurrences of `you', `we', etc.
[s-roff.git] / Makefile.in
blobbf82df6fc55b35c1bb60352db0675246e22169bf
1 # Copyright (C) 1989-2000 Free Software Foundation, Inc.
2 # Written by James Clark (jjc@jclark.com)
3 #
4 # This file is part of groff.
5 #
6 # groff is free software; you can redistribute it and/or modify it under
7 # the terms of the GNU General Public License as published by the Free
8 # Software Foundation; either version 2, or (at your option) any later
9 # version.
11 # groff is distributed in the hope that it will be useful, but WITHOUT ANY
12 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 # for more details.
16 # You should have received a copy of the GNU General Public License along
17 # with groff; see the file COPYING. If not, write to the Free Software
18 # Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 # Define `page' to be letter if your PostScript printer uses 8.5x11
21 # paper (USA) and define it to be A4, if it uses A4 paper (rest of the
22 # world).
23 PAGE=@PAGE@
25 # Normally the Postscript driver, grops, produces output that conforms
26 # to version 3.0 of the Adobe Document Structuring Conventions.
27 # Unfortunately some spoolers and previewers can't handle such output.
28 # The BROKEN_SPOOLER_FLAGS variable tells grops what it should do to
29 # make its output acceptable to such programs. This variable controls
30 # only the default behaviour of grops; the behaviour can be changed at
31 # runtime by the grops -b option (and so by groff -P-b).
32 # Use a value of 0 if your spoolers and previewers are able to handle
33 # conforming PostScript correctly.
34 # Add 1 if no %%{Begin,End}DocumentSetup comments should be generated;
35 # this is needed for early versions of TranScript that get confused by
36 # anything between the %%EndProlog line and the first %%Page: comment.
37 # Add 2 if lines in included files beginning with %! should be
38 # stripped out; this is needed for the OpenWindows 2.0 pageview previewer.
39 # Add 4 if %%Page, %%Trailer and %%EndProlog comments should be
40 # stripped out of included files; this is needed for spoolers that
41 # don't understand the %%{Begin,End}Document comments. I suspect this
42 # includes early versions of TranScript.
43 # Add 8 if the first line of the PostScript output should be %!PS-Adobe-2.0
44 # rather than %!PS-Adobe-3.0; this is needed when using Sun's Newsprint
45 # with a printer that requires page reversal.
46 BROKEN_SPOOLER_FLAGS=@BROKEN_SPOOLER_FLAGS@
48 # DEVICE is the default device.
49 DEVICE=ps
51 # PSPRINT is the command to use for printing a PostScript file,
52 # for example `lpr'.
53 PSPRINT=@PSPRINT@
55 # DVIPRINT is the command to use for printing a TeX dvi file,
56 # for example `lpr -d'.
57 DVIPRINT=@DVIPRINT@
59 # Prefix for names of programs that have Unix counterparts.
60 # For example, if `g' is `g' then troff will be installed as
61 # gtroff. This doesn't affect programs like grops or groff that have
62 # no Unix counterparts. Note that the groff versions of eqn and tbl
63 # will not work with Unix troff.
64 g=@g@
66 # Common prefix for installation directories.
67 # Used in definitions of exec_prefix, datasubdir, fontpath, manroot.
68 # This must already exist when you do make install.
69 prefix=@prefix@
71 exec_prefix=@exec_prefix@
73 # bindir says where to install executables.
74 bindir=$(exec_prefix)/bin
76 # datasubdir says where to install data files
77 datadir=$(prefix)/share
78 datasubdir=$(datadir)/groff
80 # fontdir says where to install dev*/*.
81 fontdir=$(datasubdir)/font
83 # fontpath says where to look for dev*/*.
84 fontpath=.:$(fontdir):/usr/lib/font
86 # tmacdir says where to install macros.
87 tmacdir=$(datasubdir)/tmac
89 # tmacpath says where to look for macro files.
90 tmacpath=.:$(tmacdir)
92 # sys_tmac_prefix is prefix (if any) for system macro packages
93 sys_tmac_prefix=@sys_tmac_prefix@
95 # tmac_wrap is list of system macro packages that should be made
96 # available to groff by creating a corresponding macro package
97 # in the groff macro directory that references the system macro
98 # package.
99 tmac_wrap=@tmac_wrap@
101 # If there is a groff version of a macro package listed in $(tmac_wrap),
102 # then the groff version will be installed with a prefix of this.
103 # Don't make this empty.
104 tmac_prefix=g
106 # The groff -mm macros will be available as -m$(tmac_m_prefix)m.
107 tmac_m_prefix=\
108 `for i in $(tmac_wrap) ""; do case "$$i" in m) echo $(tmac_prefix);; esac; done`
109 # The groff -ms macros will be available as -m$(tmac_s_prefix)s.
110 tmac_s_prefix=\
111 `for i in $(tmac_wrap) ""; do case "$$i" in s) echo $(tmac_prefix);; esac; done`
112 # The groff -man macros will be available as -m$(tmac_an_prefix)an.
113 tmac_an_prefix=\
114 `for i in $(tmac_wrap) ""; do case "$$i" in an) echo $(tmac_prefix);; esac; done`
116 # Extension to be used for refer index files. Index files are not
117 # sharable between different architectures, so you might want to use
118 # different suffixes for different architectures. Choose an extension
119 # that doesn't conflict with refer or any other indexing program.
120 indexext=.i
122 # Directory containing the default index for refer.
123 indexdir=/usr/dict/papers
125 # The filename (without suffix) of the default index for refer.
126 indexname=Ind
128 # common_words_file is a file containing a list of common words.
129 # If your system provides /usr/lib/eign it will be copied onto this,
130 # otherwise the supplied eign file will be used.
131 common_words_file=$(datasubdir)/eign
133 # manroot is the root of the man page directory tree.
134 manroot=$(prefix)/man
136 # man1ext is the man section for user commands.
137 man1ext=1
138 man1dir=$(manroot)/man$(man1ext)
140 # man5ext is the man section for file formats.
141 man5ext=5
142 man5dir=$(manroot)/man$(man5ext)
144 # man7ext is the man section for macros.
145 man7ext=7
146 man7dir=$(manroot)/man$(man7ext)
148 # DEFINES should include the following:
149 # -DHAVE_MMAP if you have mmap() and <sys/mman.h>
150 # -DARRAY_DELETE_NEEDS_SIZE if your C++ doesn't understand `delete []'
151 # -DHAVE_SYS_SIGLIST if you have sys_siglist[]
152 # -DWCOREFLAG=0200 if the 0200 bit of the status returned by
153 # wait() indicates whether a core image was
154 # produced for a process that was terminated
155 # by a signal
156 # -DHAVE_UNISTD_H if you have <unistd.h>
157 # -DHAVE_CC_OSFCN_H if you have a C++ <osfcn.h>
158 # -DHAVE_DIRENT_H if you have <dirent.h>
159 # -DHAVE_LIMITS_H if you have <limits.h>
160 # -DHAVE_CC_LIMITS_H if you have a C++ <limits.h>
161 # -DHAVE_SYS_DIR_H if you have <sys/dir.h>
162 # -DHAVE_STDLIB_H if you have <stdlib.h>
163 # -DHAVE_RENAME if you have rename()
164 # -DHAVE_MKSTEMP if you have mkstemp()
165 # -DSTDLIB_H_DECLARES_PUTENV if your C++ <stdlib.h> declares putenv()
166 # -DSTDIO_H_DECLARES_POPEN if your C++ <stdio.h> declares popen()
167 # -DSTDIO_H_DECLARES_PCLOSE if your C++ <stdio.h> declares pclose()
168 # -DHAVE_SYS_NERR if you have sysnerr in <errno.h> or <stdio.h>
169 # -DHAVE_SYS_ERRLIST if you have sys_errlist in <errno.h> or
170 # <stdio.h>
171 # -DMATH_H_DECLARES_HYPOT if you have hypot() in <math.h>
172 # -DTRADITIONAL_CPP if your C++ compiler uses a traditional
173 # (Reiser) preprocessor
174 # -DLONG_FOR_TIME_T if localtime() takes a long * not a time_t *
175 # -DHAVE_STRUCT_EXCEPTION if <math.h> defines struct exception
176 # -DRETSIGTYPE=int if signal handlers return int not void
177 DEFINES=@DEFS@
179 # Include fmod.o, strtol.o, getcwd.o, strerror.o, putenv.o in LIBOBJS if
180 # your C library is missing the corresponding function.
181 LIBOBJS=@LIBOBJS@
183 # CCC is the compiler for C++ (.cc) files.
184 CCC=@CXX@
185 CC=@CC@
186 # CCDEFINES are definitions for C++ compilations.
187 CCDEFINES=$(DEFINES)
188 # CDEFINES are definitions for C compilations.
189 CDEFINES=$(DEFINES)
191 CCFLAGS=@CXXFLAGS@
192 CFLAGS=@CFLAGS@
193 LDFLAGS=@LDFLAGS@
194 YACC=@YACC@
195 YACCFLAGS=-v
197 LIBS=@LIBS@
198 LIBM=@LIBM@
199 RANLIB=@RANLIB@
200 INSTALL=@INSTALL@
201 INSTALL_PROGRAM=@INSTALL_PROGRAM@
202 INSTALL_SCRIPT=@INSTALL_SCRIPT@
203 INSTALL_DATA=@INSTALL_DATA@
204 LN_S=@LN_S@
205 AR=ar
206 ETAGS=etags
207 ETAGSFLAGS=
208 # Flag that tells etags to assume C++.
209 ETAGSCCFLAG=-C
210 # Full path to perl.
211 PERLPATH=@PERLPATH@
212 # Sed command with which to edit sh scripts.
213 SH_SCRIPT_SED_CMD=@SH_SCRIPT_SED_CMD@
215 srcdir=@srcdir@
216 top_srcdir=@top_srcdir@
217 VPATH=@srcdir@
218 top_builddir=@top_builddir@
220 # the program to create directory hierarchies
221 mkinstalldirs=$(top_srcdir)/mkinstalldirs
223 PURIFY=purify
224 PURIFYCCFLAGS=
225 #PURIFYCCFLAGS=-g++=yes \
226 # -collector=`dirname \`$(CCC) -print-libgcc-file-name\``/ld
228 # Passing down MAKEOVERRIDES prevents $(MAKE) from containing a second
229 # copy of $(MDEFINES) when making individual directories; this could
230 # cause the argument list to become too long on some systems.
231 MDEFINES= \
232 "MAKEOVERRIDES=$(MAKEOVERRIDES)" \
233 "PAGE=$(PAGE)" \
234 "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
235 "DEVICE=$(DEVICE)" \
236 "PSPRINT=$(PSPRINT)" \
237 "DVIPRINT=$(DVIPRINT)" \
238 "top_srcdir=$(top_srcdir)" \
239 "top_builddir=$(top_builddir)" \
240 "prefix=$(prefix)" \
241 "exec_prefix=$(exec_prefix)" \
242 "bindir=$(bindir)" \
243 "g=$(g)" \
244 "datadir=$(datadir)" \
245 "datasubdir=$(datasubdir)" \
246 "fontdir=$(fontdir)" \
247 "fontpath=$(fontpath)" \
248 "tmacdir=$(tmacdir)" \
249 "tmacpath=$(tmacpath)" \
250 "indexext=$(indexext)" \
251 "indexdir=$(indexdir)" \
252 "indexname=$(indexname)" \
253 "common_words_file=$(common_words_file)" \
254 "manroot=$(manroot)" \
255 "man1ext=$(man1ext)" \
256 "man1dir=$(man1dir)" \
257 "man5ext=$(man5ext)" \
258 "man5dir=$(man5dir)" \
259 "man7ext=$(man7ext)" \
260 "man7dir=$(man7dir)" \
261 "mkinstalldirs=$(mkinstalldirs)" \
262 "tmac_wrap=$(tmac_wrap)" \
263 "sys_tmac_prefix=$(sys_tmac_prefix)" \
264 "tmac_an_prefix=$(tmac_an_prefix)" \
265 "tmac_s_prefix=$(tmac_s_prefix)" \
266 "tmac_m_prefix=$(tmac_m_prefix)" \
267 "CCC=$(CCC)" \
268 "CC=$(CC)" \
269 "CCDEFINES=$(CCDEFINES)" \
270 "CDEFINES=$(CDEFINES)" \
271 "CCFLAGS=$(CCFLAGS)" \
272 "CFLAGS=$(CFLAGS)" \
273 "LDFLAGS=$(LDFLAGS)" \
274 "YACC=$(YACC)" \
275 "YACCFLAGS=$(YACCFLAGS)" \
276 "LIBM=$(LIBM)" \
277 "LIBS=$(LIBS)" \
278 "LIBOBJS=$(LIBOBJS)" \
279 "RANLIB=$(RANLIB)" \
280 "AR=$(AR)" \
281 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
282 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
283 "INSTALL_DATA=$(INSTALL_DATA)" \
284 "ETAGS=$(ETAGS)" \
285 "ETAGSFLAGS=$(ETAGSFLAGS)" \
286 "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
287 "PERLPATH=$(PERLPATH)" \
288 "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \
289 "PURIFY=$(PURIFY)" \
290 "PURIFYCCFLAGS=$(PURIFYCCFLAGS)"
292 SHELL=/bin/sh
293 INCDIRS=src/include
294 LIBDIRS=\
295 src/libs/libgroff \
296 src/libs/libdriver \
297 src/libs/libbib
298 CCPROGDIRS=\
299 src/roff/groff \
300 src/roff/troff \
301 src/preproc/tbl \
302 src/preproc/pic \
303 src/preproc/eqn \
304 src/preproc/grn \
305 src/preproc/refer \
306 src/preproc/soelim \
307 src/devices/grops \
308 src/devices/grotty \
309 src/devices/grodvi \
310 src/devices/grolj4 \
311 src/devices/grohtml \
312 src/devices/grolbp \
313 src/utils/tfmtodit \
314 src/utils/hpftodit \
315 src/utils/lookbib \
316 src/utils/indxbib \
317 src/utils/lkbib \
318 src/utils/addftinfo
319 CPROGDIRS=src/utils/pfbtops
320 PROGDIRS=$(CCPROGDIRS) $(CPROGDIRS)
321 DEVDIRS=\
322 font/devps \
323 font/devdvi \
324 font/devascii \
325 font/devlatin1 \
326 font/devutf8 \
327 font/devX75 \
328 font/devX75-12 \
329 font/devX100 \
330 font/devX100-12 \
331 font/devlj4 \
332 font/devhtml \
333 font/devlbp
334 OTHERDIRS=\
335 man \
336 tmac \
337 src/utils/afmtodit \
338 src/roff/grog \
339 src/roff/nroff \
340 contrib/mm
341 ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(OTHERDIRS)
342 EXTRADIRS=\
343 fonts/devps/generate \
344 fonts/devdvi/generate \
345 src/xditview \
347 DISTDIRS=$(ALLDIRS) $(EXTRADIRS)
348 TARGETS=all install install_bin install_data clean distclean mostlyclean \
349 realclean extraclean distfiles TAGS depend uninstall_sub
351 do=all
352 dodirs=$(ALLDIRS) dot
353 # Default target for subdir_Makefile
354 subdir=src/roff/troff
357 $(TARGETS):
358 @$(MAKE) $(MDEFINES) do=$@ $(dodirs)
360 dot: FORCE
361 @$(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
362 -f $(top_srcdir)/Makefile.comm \
363 -f $(top_srcdir)/Makefile.sub $(do)
365 $(LIBDIRS): FORCE
366 @if test $(srcdir) = .; \
367 then srcdir=.; \
368 else srcdir=`cd $(srcdir); pwd`/$@; \
369 fi; \
370 test -d $@ || $(mkinstalldirs) $@; \
371 cd $@; \
372 test -f Makefile.dep || touch Makefile.dep; \
373 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
374 -f $(top_srcdir)/Makefile.comm \
375 -f $$srcdir/Makefile.sub \
376 -f $(top_srcdir)/Makefile.lib \
377 -f Makefile.dep $(do)
379 $(CPROGDIRS): FORCE
380 @if test $(srcdir) = .; \
381 then srcdir=.; \
382 else srcdir=`cd $(srcdir); pwd`/$@; \
383 fi; \
384 test -d $@ || $(mkinstalldirs) $@; \
385 cd $@; \
386 test -f Makefile.dep || touch Makefile.dep; \
387 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
388 -f $(top_srcdir)/Makefile.comm \
389 -f $$srcdir/Makefile.sub \
390 -f $(top_srcdir)/Makefile.cpg \
391 -f Makefile.dep $(do)
393 $(CCPROGDIRS): FORCE
394 @if test $(srcdir) = .; \
395 then srcdir=.; \
396 else srcdir=`cd $(srcdir); pwd`/$@; \
397 fi; \
398 test -d $@ || $(mkinstalldirs) $@; \
399 cd $@; \
400 test -f Makefile.dep || touch Makefile.dep; \
401 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
402 -f $(top_srcdir)/Makefile.comm \
403 -f $$srcdir/Makefile.sub \
404 -f $(top_srcdir)/Makefile.ccpg \
405 -f Makefile.dep $(do)
407 $(DEVDIRS): FORCE
408 @if test $(srcdir) = .; \
409 then srcdir=.; \
410 else srcdir=`cd $(srcdir); pwd`/$@; \
411 fi; \
412 test -d $@ || $(mkinstalldirs) $@; \
413 cd $@; \
414 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
415 -f $(top_srcdir)/Makefile.comm \
416 -f $$srcdir/Makefile.sub \
417 -f $(top_srcdir)/Makefile.dev $(do)
419 $(INCDIRS) $(OTHERDIRS): FORCE
420 @if test $(srcdir) = .; \
421 then srcdir=.; \
422 else srcdir=`cd $(srcdir); pwd`/$@; \
423 fi; \
424 test -d $@ || $(mkinstalldirs) $@; \
425 cd $@; \
426 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
427 -f $(top_srcdir)/Makefile.comm \
428 -f $$srcdir/Makefile.sub \
429 -f $(top_srcdir)/Makefile.man $(do)
431 version=`cat $(top_srcdir)/VERSION`
432 # No additional number for the groff archive if revision is zero
433 revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(top_srcdir)/REVISION`
435 .PHONY: dist
436 dist:
437 -rm -fr tmp
438 mkdir tmp
439 for d in $(DISTDIRS); do \
440 $(mkinstalldirs) tmp/$$d; \
441 done
442 srcdir=`cd $(srcdir); pwd`; \
443 cd tmp; \
444 $(LN_S) ../Makefile .; \
445 $(LN_S) $$srcdir/* . 2>/dev/null || true; \
446 for d in $(DISTDIRS); do \
447 (cd $$d; $(LN_S) $$srcdir/$$d/* . 2>/dev/null || true); \
448 done; \
449 $(MAKE) srcdir=$$srcdir VPATH=$$srcdir extraclean; \
450 for d in $(EXTRADIRS); do \
451 (cd $$d; $(MAKE) extraclean); \
452 done; \
453 rm -f Makefile; \
454 $(LN_S) $$srcdir/Makefile.init Makefile
455 mv tmp groff-$(version)$(revision)
456 rm -f groff-$(version)$(revision).tar.gz
457 tar cfh - groff-$(version)$(revision) | \
458 gzip -c >groff-$(version)$(revision).tar.gz
459 rm -fr groff-$(version)$(revision)
461 # $(PROGDIRS): libgroff
462 # grops grotty grodvi: libdriver
463 # refer lookbib indxbib lkbib: libbib
464 # $(LIBDIRS) $(PROGDIRS): include
466 .PHONY: $(ALLDIRS) dot $(TARGETS) FORCE
468 subdir_Makefile: Makefile.cfg
469 $(MAKE) do=Makefile $(subdir)
471 Makefile.cfg: Makefile
472 >Makefile.cfg
473 for var in $(MDEFINES); do \
474 echo "$$var" >>Makefile.cfg; \
475 done
477 Makefile: Makefile.in
478 $(SHELL) config.status
480 .PHONY: uninstall
481 uninstall: uninstall_sub uninstall_dirs
483 .PHONY: uninstall_dirs
484 uninstall_dirs:
485 # Use rmdir here so that the directories are only removed if they're empty
486 -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \
487 $(tmacdir) $(fontdir) $(bindir) $(datasubdir) $(datadir)
490 .PHONY: check
491 check:
493 FORCE:
495 .NOEXPORT: