* aclocal.m4 (GROFF_EBCDIC): Don't include `font/devutf8' in
[s-roff.git] / Makefile.in
blobbc61f8280bbffb9690f4e0d9f8967fe56d98350e
1 # Copyright (C) 1989-2000, 2001, 2002 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 srcdir=@srcdir@
21 top_srcdir=@top_srcdir@
22 VPATH=@srcdir@
23 top_builddir=@top_builddir@
25 version=`cat $(top_srcdir)/VERSION`
26 # No additional number if revision is zero
27 revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(top_srcdir)/REVISION`
29 # Define `page' to be letter if your PostScript printer uses 8.5x11
30 # paper (USA) and define it to be A4, if it uses A4 paper (rest of the
31 # world).
32 PAGE=@PAGE@
34 # Normally the Postscript driver, grops, produces output that conforms
35 # to version 3.0 of the Adobe Document Structuring Conventions.
36 # Unfortunately some spoolers and previewers can't handle such output.
37 # The BROKEN_SPOOLER_FLAGS variable tells grops what it should do to
38 # make its output acceptable to such programs. This variable controls
39 # only the default behaviour of grops; the behaviour can be changed at
40 # runtime by the grops -b option (and so by groff -P-b).
41 # Use a value of 0 if your spoolers and previewers are able to handle
42 # conforming PostScript correctly.
43 # Add 1 if no %%{Begin,End}DocumentSetup comments should be generated;
44 # this is needed for early versions of TranScript that get confused by
45 # anything between the %%EndProlog line and the first %%Page: comment.
46 # Add 2 if lines in included files beginning with %! should be
47 # stripped out; this is needed for the OpenWindows 2.0 pageview previewer.
48 # Add 4 if %%Page, %%Trailer and %%EndProlog comments should be
49 # stripped out of included files; this is needed for spoolers that
50 # don't understand the %%{Begin,End}Document comments. I suspect this
51 # includes early versions of TranScript.
52 # Add 8 if the first line of the PostScript output should be %!PS-Adobe-2.0
53 # rather than %!PS-Adobe-3.0; this is needed when using Sun's Newsprint
54 # with a printer that requires page reversal.
55 BROKEN_SPOOLER_FLAGS=@BROKEN_SPOOLER_FLAGS@
57 # DEVICE is the default device.
58 DEVICE=ps
60 # TTYDEVDIRS is either `font/devascii font/devlatin1' (for
61 # ASCII) or `font/devcp1047' (for EBCDIC) plus font/devutf8.
62 TTYDEVDIRS=@TTYDEVDIRS@ font/devutf8
64 # OTHERDEVDIRS is either `font/devlj4 font/devlbp' (for ASCII) or
65 # empty (for EBCDIC).
66 OTHERDEVDIRS=@OTHERDEVDIRS@
68 # PSPRINT is the command to use for printing a PostScript file,
69 # for example `lpr'.
70 PSPRINT=@PSPRINT@
72 # DVIPRINT is the command to use for printing a TeX dvi file,
73 # for example `lpr -d'.
74 DVIPRINT=@DVIPRINT@
76 # Prefix for names of programs that have Unix counterparts.
77 # For example, if `g' is `g' then troff will be installed as
78 # gtroff. This doesn't affect programs like grops or groff that have
79 # no Unix counterparts. Note that the groff versions of eqn and tbl
80 # will not work with Unix troff.
81 g=@g@
83 # Common prefix for installation directories.
84 # Used in definitions of exec_prefix, datasubdir, fontpath, manroot.
85 # This must already exist when you do make install.
86 prefix=@prefix@
87 exec_prefix=@exec_prefix@
89 # bindir says where to install executables.
90 bindir=@bindir@
92 # libdir says where to install platform-dependent data
93 libdir=@libdir@
94 libprogramdir=$(libdir)/groff
96 # datasubdir says where to install platform-independent data files
97 datadir=@datadir@
98 dataprogramdir=$(datadir)/groff
99 datasubdir=$(dataprogramdir)/$(version)$(revision)
101 # fontdir says where to install dev*/*.
102 fontdir=$(datasubdir)/font
104 # fontpath says where to look for dev*/*.
105 fontpath=$(fontdir):/usr/lib/font
107 # tmacdir says where to install macros.
108 tmacdir=$(datasubdir)/tmac
110 # systemtmacdir says where to install platform-dependent macros
111 systemtmacdir=$(libprogramdir)/site-tmac
113 # localtmacdir says where local files will be installed
114 localtmacdir=$(dataprogramdir)/site-tmac
116 # tmacpath says where to look for macro files.
117 # The current directory will be prepended in unsafe mode only; the home
118 # directory will be always added.
119 # `troffrc' and `troffrc-end' (and `eqnrc') are searched neither in the
120 # current nor in the home directory.
121 tmacpath=$(systemtmacdir):$(localtmacdir):$(tmacdir)
123 # sys_tmac_prefix is prefix (if any) for system macro packages
124 sys_tmac_prefix=@sys_tmac_prefix@
126 # tmac_wrap is list of system macro packages that should be made
127 # available to groff by creating a corresponding macro package
128 # in the groff macro directory that references the system macro
129 # package.
130 tmac_wrap=@tmac_wrap@
132 # If there is a groff version of a macro package listed in $(tmac_wrap),
133 # then the groff version will be installed with a prefix of this.
134 # Don't make this empty.
135 tmac_prefix=g
137 # The groff -mm macros will be available as -m$(tmac_m_prefix)m.
138 tmac_m_prefix=\
139 `for i in $(tmac_wrap) ""; do case "$$i" in m) echo $(tmac_prefix);; esac; done`
140 # The groff -ms macros will be available as -m$(tmac_s_prefix)s.
141 tmac_s_prefix=\
142 `for i in $(tmac_wrap) ""; do case "$$i" in s) echo $(tmac_prefix);; esac; done`
143 # The groff -man macros will be available as -m$(tmac_an_prefix)an.
144 tmac_an_prefix=\
145 `for i in $(tmac_wrap) ""; do case "$$i" in an) echo $(tmac_prefix);; esac; done`
147 # Extension to be used for refer index files. Index files are not
148 # sharable between different architectures, so you might want to use
149 # different suffixes for different architectures. Choose an extension
150 # that doesn't conflict with refer or any other indexing program.
151 indexext=.i
153 # Directory containing the default index for refer.
154 indexdir=/usr/dict/papers
156 # The filename (without suffix) of the default index for refer.
157 indexname=Ind
159 # common_words_file is a file containing a list of common words.
160 # If your system provides /usr/lib/eign it will be copied onto this,
161 # otherwise the supplied eign file will be used.
162 common_words_file=$(datasubdir)/eign
164 # manroot is the root of the man page directory tree.
165 mandir=@mandir@
166 manroot=$(mandir)
168 # man1ext is the man section for user commands.
169 man1ext=1
170 man1dir=$(manroot)/man$(man1ext)
172 # man5ext is the man section for file formats.
173 man5ext=5
174 man5dir=$(manroot)/man$(man5ext)
176 # man7ext is the man section for macros.
177 man7ext=7
178 man7dir=$(manroot)/man$(man7ext)
180 # DEFINES should include the following:
181 # -DHAVE_MMAP if you have mmap() and <sys/mman.h>
182 # -DARRAY_DELETE_NEEDS_SIZE if your C++ doesn't understand `delete []'
183 # -DSYS_SIGLIST_DECLARED if you have sys_siglist[]
184 # -DWCOREFLAG=0200 if the 0200 bit of the status returned by
185 # wait() indicates whether a core image was
186 # produced for a process that was terminated
187 # by a signal
189 # -DHAVE_DIRENT_H if you have <dirent.h>
190 # -DHAVE_LIMITS_H if you have <limits.h>
191 # -DHAVE_CC_LIMITS_H if you have a C++ <limits.h>
192 # -DHAVE_MATH_H if you have <math.h>
193 # -DHAVE_CC_OSFCN_H if you have a C++ <osfcn.h>
194 # -DHAVE_STDINT_H if you have <stdint.h>
195 # -DHAVE_STDLIB_H if you have <stdlib.h>
196 # -DHAVE_STRING_H if you have <string.h>
197 # -DHAVE_STRINGS_H if you have <strings.h>
198 # -DHAVE_SYS_DIR_H if you have <sys/dir.h>
199 # -DHAVE_SYS_TIME_H if you have <sys/time.h>
200 # -DHAVE_UNISTD_H if you have <unistd.h>
202 # -DHAVE_FMOD if you have fmod()
203 # -DHAVE_GETCWD if you have getcwd()
204 # -DHAVE_GETTIMEOFDAY if you have gettimeofday()
205 # -DHAVE_MKSTEMP if you have mkstemp()
206 # -DHAVE_MMAP if you have mmap()
207 # -DHAVE_PUTENV if you have putenv()
208 # -DHAVE_RENAME if you have rename()
209 # -DHAVE_SNPRINTF if you have snprintf()
210 # -DHAVE_STRCASECMP if you have strcasecmp()
211 # -DHAVE_STRNCASECMP if you have strncasecmp()
212 # -DHAVE_STRERROR if you have strerror()
213 # -DHAVE_STRSEP if you have strsep()
214 # -DHAVE_STRTOL if you have strtol()
216 # -DNEED_DECLARATION_GETTIMEOFTODAY
217 # if your C++ <sys/time.h> doesn't declare
218 # gettimeofday()
219 # -DNEED_DECLARATION_HYPOT if your C++ <math.h> doesn't declare hypot()
220 # -DNEED_DECLARATION_PCLOSE if your C++ <stdio.h> doesn't declare pclose()
221 # -DNEED_DECLARATION_POPEN if your C++ <stdio.h> doesn't declare popen()
222 # -DNEED_DECLARATION_PUTENV if your C++ <stdlib.h> doesn't declare putenv()
223 # -DNEED_DECLARATION_STRCASECMP if your C++ <string.h> doesn't declare
224 # strcasecmp()
225 # -DNEED_DECLARATION_STRNCASECMP
226 # if your C++ <string.h> doesn't declare
227 # strncasecmp()
229 # -DRET_TYPE_SRAND_IS_VOID if srand() returns void not int
230 # -DHAVE_SYS_NERR if you have sysnerr in <errno.h> or <stdio.h>
231 # -DHAVE_SYS_ERRLIST if you have sys_errlist in <errno.h> or
232 # <stdio.h>
233 # -DTRADITIONAL_CPP if your C++ compiler uses a traditional
234 # (Reiser) preprocessor
235 # -DLONG_FOR_TIME_T if localtime() takes a long * not a time_t *
236 # -DHAVE_STRUCT_EXCEPTION if <math.h> defines struct exception
237 # -DRETSIGTYPE=int if signal handlers return int not void
238 # -DIS_EBCDIC_HOST if the host's encoding is EBCDIC
239 # -DPAGEA4 if the the printer's page size is A4
240 DEFINES=@DEFS@
242 # Include
244 # fmod.o, getcwd.o, mkstemp.o, putenv.o, snprintf.o, strerror.o, strtol.o
246 # in LIBOBJS if your C library is missing the corresponding function.
247 LIBOBJS=@LIBOBJS@
249 # CCC is the compiler for C++ (.cc) files.
250 CCC=@CXX@
251 CC=@CC@
252 # CCDEFINES are definitions for C++ compilations.
253 CCDEFINES=$(DEFINES)
254 # CDEFINES are definitions for C compilations.
255 CDEFINES=$(DEFINES)
257 CCFLAGS=@CXXFLAGS@
258 CFLAGS=@CFLAGS@
259 LDFLAGS=@LDFLAGS@
260 YACC=@YACC@
261 YACCFLAGS=-v
263 LIBS=@LIBS@
264 LIBM=@LIBM@
265 RANLIB=@RANLIB@
266 INSTALL=@INSTALL@
267 INSTALL_PROGRAM=@INSTALL_PROGRAM@
268 INSTALL_SCRIPT=@INSTALL_SCRIPT@
269 INSTALL_DATA=@INSTALL_DATA@
270 LN_S=@LN_S@
271 AR=ar
272 ETAGS=etags
273 ETAGSFLAGS=
274 # Flag that tells etags to assume C++.
275 ETAGSCCFLAG=-C
276 # Full path to perl.
277 PERLPATH=@PERLPATH@
278 # Sed command with which to edit sh scripts.
279 SH_SCRIPT_SED_CMD=@SH_SCRIPT_SED_CMD@
281 # the program to create directory hierarchies
282 mkinstalldirs=$(top_srcdir)/mkinstalldirs
284 PURIFY=purify
285 PURIFYCCFLAGS=
286 #PURIFYCCFLAGS=-g++=yes \
287 # -collector=`dirname \`$(CCC) -print-libgcc-file-name\``/ld
289 # Passing down MAKEOVERRIDES prevents $(MAKE) from containing a second
290 # copy of $(MDEFINES) when making individual directories; this could
291 # cause the argument list to become too long on some systems.
292 MDEFINES= \
293 "MAKEOVERRIDES=$(MAKEOVERRIDES)" \
294 "PAGE=$(PAGE)" \
295 "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
296 "DEVICE=$(DEVICE)" \
297 "TTYDEVDIRS=$(TTYDEVDIRS)" \
298 "OTHERDEVDIRS=$(OTHERDEVDIRS)" \
299 "PSPRINT=$(PSPRINT)" \
300 "DVIPRINT=$(DVIPRINT)" \
301 "top_srcdir=$(top_srcdir)" \
302 "top_builddir=$(top_builddir)" \
303 "prefix=$(prefix)" \
304 "exec_prefix=$(exec_prefix)" \
305 "g=$(g)" \
306 "datadir=$(datadir)" \
307 "dataprogramdir=$(dataprogramdir)" \
308 "datasubdir=$(datasubdir)" \
309 "libdir=$(libdir)" \
310 "libprogramdir=$(libprogramdir)" \
311 "bindir=$(bindir)" \
312 "fontdir=$(fontdir)" \
313 "fontpath=$(fontpath)" \
314 "tmacdir=$(tmacdir)" \
315 "systemtmacdir=$(systemtmacdir)" \
316 "localtmacdir=$(localtmacdir)" \
317 "tmacpath=$(tmacpath)" \
318 "indexext=$(indexext)" \
319 "indexdir=$(indexdir)" \
320 "indexname=$(indexname)" \
321 "common_words_file=$(common_words_file)" \
322 "manroot=$(manroot)" \
323 "man1ext=$(man1ext)" \
324 "man1dir=$(man1dir)" \
325 "man5ext=$(man5ext)" \
326 "man5dir=$(man5dir)" \
327 "man7ext=$(man7ext)" \
328 "man7dir=$(man7dir)" \
329 "mkinstalldirs=$(mkinstalldirs)" \
330 "tmac_wrap=$(tmac_wrap)" \
331 "sys_tmac_prefix=$(sys_tmac_prefix)" \
332 "tmac_an_prefix=$(tmac_an_prefix)" \
333 "tmac_s_prefix=$(tmac_s_prefix)" \
334 "tmac_m_prefix=$(tmac_m_prefix)" \
335 "CCC=$(CCC)" \
336 "CC=$(CC)" \
337 "CCDEFINES=$(CCDEFINES)" \
338 "CDEFINES=$(CDEFINES)" \
339 "CCFLAGS=$(CCFLAGS)" \
340 "CFLAGS=$(CFLAGS)" \
341 "LDFLAGS=$(LDFLAGS)" \
342 "YACC=$(YACC)" \
343 "YACCFLAGS=$(YACCFLAGS)" \
344 "LIBM=$(LIBM)" \
345 "LIBS=$(LIBS)" \
346 "LIBOBJS=$(LIBOBJS)" \
347 "RANLIB=$(RANLIB)" \
348 "AR=$(AR)" \
349 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
350 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
351 "INSTALL_DATA=$(INSTALL_DATA)" \
352 "ETAGS=$(ETAGS)" \
353 "ETAGSFLAGS=$(ETAGSFLAGS)" \
354 "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
355 "PERLPATH=$(PERLPATH)" \
356 "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \
357 "PURIFY=$(PURIFY)" \
358 "PURIFYCCFLAGS=$(PURIFYCCFLAGS)"
360 SHELL=/bin/sh
361 INCDIRS=src/include
362 LIBDIRS=\
363 src/libs/libgroff \
364 src/libs/libdriver \
365 src/libs/libbib
366 CCPROGDIRS=\
367 src/roff/groff \
368 src/roff/troff \
369 src/preproc/tbl \
370 src/preproc/pic \
371 src/preproc/eqn \
372 src/preproc/grn \
373 src/preproc/refer \
374 src/preproc/soelim \
375 src/preproc/html \
376 src/devices/grops \
377 src/devices/grotty \
378 src/devices/grodvi \
379 src/devices/grolj4 \
380 src/devices/grohtml \
381 src/devices/grolbp \
382 src/utils/tfmtodit \
383 src/utils/hpftodit \
384 src/utils/lookbib \
385 src/utils/indxbib \
386 src/utils/lkbib \
387 src/utils/addftinfo
388 CPROGDIRS=src/utils/pfbtops
389 PROGDIRS=$(CCPROGDIRS) $(CPROGDIRS)
390 DEVDIRS=\
391 font/devps \
392 font/devdvi \
393 font/devX75 \
394 font/devX75-12 \
395 font/devX100 \
396 font/devX100-12 \
397 font/devhtml
398 ALLTTYDEVDIRS=\
399 font/devascii \
400 font/devlatin1 \
401 font/devutf8 \
402 font/devcp1047
403 OTHERDIRS=\
404 man \
405 tmac \
406 src/utils/afmtodit \
407 src/roff/grog \
408 src/roff/nroff \
409 contrib/mm \
410 contrib/pic2graph \
411 contrib/groffer
412 ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \
413 $(DEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS) $(OTHERDIRS)
414 EXTRADIRS=\
415 font/devps/generate \
416 font/devdvi/generate \
417 src/xditview \
419 DISTDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \
420 $(DEVDIRS) $(OTHERDEVDIRS) $(ALLTTYDEVDIRS) $(OTHERDIRS) $(EXTRADIRS)
421 TARGETS=all install install_bin install_data clean distclean mostlyclean \
422 realclean extraclean distfiles TAGS depend uninstall_sub
424 # This ENVSETUP gork is required by the DJGPP build on Windows 9X,
425 # where Make needs to be case-sensitive to find files like BI and VERSION.
426 ENVSETUP=\
427 if test -f $(srcdir)/makefile.ccpg* && \
428 test -f $(srcdir)/Makefile.ccpg*; \
429 then FNCASE=y; export FNCASE; \
430 else :; \
433 do=all
434 dodirs=$(ALLDIRS) dot
435 # Default target for subdir_Makefile
436 subdir=src/roff/troff
439 $(TARGETS):
440 @$(ENVSETUP); $(MAKE) $(MDEFINES) do=$@ $(dodirs)
442 dot: FORCE
443 @$(ENVSETUP); \
444 $(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
445 -f $(top_srcdir)/Makefile.comm \
446 -f $(top_srcdir)/Makefile.sub $(do)
448 $(LIBDIRS): FORCE
449 @$(ENVSETUP); \
450 if test $(srcdir) = .; \
451 then srcdir=.; \
452 else srcdir=`cd $(srcdir); pwd`/$@; \
453 fi; \
454 test -d $@ || $(mkinstalldirs) $@; \
455 cd $@; \
456 test -f Makefile.dep || touch Makefile.dep; \
457 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
458 -f $(top_srcdir)/Makefile.comm \
459 -f $$srcdir/Makefile.sub \
460 -f $(top_srcdir)/Makefile.lib \
461 -f Makefile.dep $(do)
463 $(CPROGDIRS): FORCE
464 @$(ENVSETUP); \
465 if test $(srcdir) = .; \
466 then srcdir=.; \
467 else srcdir=`cd $(srcdir); pwd`/$@; \
468 fi; \
469 test -d $@ || $(mkinstalldirs) $@; \
470 cd $@; \
471 test -f Makefile.dep || touch Makefile.dep; \
472 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
473 -f $(top_srcdir)/Makefile.comm \
474 -f $$srcdir/Makefile.sub \
475 -f $(top_srcdir)/Makefile.cpg \
476 -f Makefile.dep $(do)
478 $(CCPROGDIRS): FORCE
479 @$(ENVSETUP); \
480 if test $(srcdir) = .; \
481 then srcdir=.; \
482 else srcdir=`cd $(srcdir); pwd`/$@; \
483 fi; \
484 test -d $@ || $(mkinstalldirs) $@; \
485 cd $@; \
486 test -f Makefile.dep || touch Makefile.dep; \
487 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
488 -f $(top_srcdir)/Makefile.comm \
489 -f $$srcdir/Makefile.sub \
490 -f $(top_srcdir)/Makefile.ccpg \
491 -f Makefile.dep $(do)
493 $(DEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS): FORCE
494 @$(ENVSETUP); \
495 if test $(srcdir) = .; \
496 then srcdir=.; \
497 else srcdir=`cd $(srcdir); pwd`/$@; \
498 fi; \
499 test -d $@ || $(mkinstalldirs) $@; \
500 cd $@; \
501 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
502 -f $(top_srcdir)/Makefile.comm \
503 -f $$srcdir/Makefile.sub \
504 -f $(top_srcdir)/Makefile.dev $(do)
506 $(INCDIRS) $(OTHERDIRS): FORCE
507 @$(ENVSETUP); \
508 if test $(srcdir) = .; \
509 then srcdir=.; \
510 else srcdir=`cd $(srcdir); pwd`/$@; \
511 fi; \
512 test -d $@ || $(mkinstalldirs) $@; \
513 cd $@; \
514 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
515 -f $(top_srcdir)/Makefile.comm \
516 -f $$srcdir/Makefile.sub \
517 -f $(top_srcdir)/Makefile.man $(do)
519 .PHONY: dist
520 dist:
521 -rm -fr tmp
522 rm -f groff-$(version)$(revision).tar.gz
523 mkdir tmp
524 for d in $(DISTDIRS); do \
525 $(mkinstalldirs) tmp/$$d; \
526 done
527 srcdir=`cd $(srcdir); pwd`; \
528 cd tmp; \
529 $(LN_S) ../Makefile .; \
530 $(LN_S) $$srcdir/* . 2>/dev/null || true; \
531 rm -rf CVS; \
532 for d in $(DISTDIRS); do \
533 (cd $$d; \
534 $(LN_S) $$srcdir/$$d/* . 2>/dev/null; \
535 rm -rf CVS || true); \
536 done; \
537 $(MAKE) srcdir=. VPATH=. distfiles; \
538 $(MAKE) srcdir=. VPATH=. extraclean; \
539 for d in $(EXTRADIRS); do \
540 (cd $$d; $(MAKE) extraclean); \
541 done; \
542 rm -f Makefile; \
543 $(LN_S) $$srcdir/Makefile.init Makefile
544 mv tmp groff-$(version)$(revision)
545 tar cfh - groff-$(version)$(revision) | \
546 gzip -c >groff-$(version)$(revision).tar.gz
547 rm -fr groff-$(version)$(revision)
549 # $(PROGDIRS): libgroff
550 # grops grotty grodvi: libdriver
551 # refer lookbib indxbib lkbib: libbib
552 # $(LIBDIRS) $(PROGDIRS): include
554 .PHONY: $(ALLDIRS) dot $(TARGETS) FORCE
556 # Create a Makefile in $(subdir). This is useful for development since it
557 # avoids running make recursively.
558 subdir_Makefile: Makefile.cfg
559 $(MAKE) do=Makefile $(subdir)
561 Makefile.cfg: Makefile
562 >Makefile.cfg
563 for var in $(MDEFINES); do \
564 echo "$$var" >>Makefile.cfg; \
565 done
567 Makefile: Makefile.in
568 $(SHELL) config.status
570 .PHONY: uninstall
571 uninstall: uninstall_sub uninstall_dirs
573 .PHONY: uninstall_dirs
574 uninstall_dirs:
575 # Use rmdir here so that the directories are only removed if they're empty
576 -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \
577 $(tmacdir) $(systemtmacdir) $(localtmacdir) $(fontdir) $(bindir) \
578 $(datasubdir) $(dataprogramdir) $(datadir) \
579 $(libprogramdir) $(libdir)
582 .PHONY: check
583 check:
585 FORCE:
587 .NOEXPORT: