* tmac/groff_tmac.man: Moved to...
[s-roff.git] / Makefile.in
bloba6d4ea159db556f054b0f2480fe2a6483919fd96
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 font/devutf8' (for
61 # ASCII) or `font/devcp1047' (for EBCDIC).
62 TTYDEVDIRS=@TTYDEVDIRS@
64 # PSPRINT is the command to use for printing a PostScript file,
65 # for example `lpr'.
66 PSPRINT=@PSPRINT@
68 # DVIPRINT is the command to use for printing a TeX dvi file,
69 # for example `lpr -d'.
70 DVIPRINT=@DVIPRINT@
72 # Prefix for names of programs that have Unix counterparts.
73 # For example, if `g' is `g' then troff will be installed as
74 # gtroff. This doesn't affect programs like grops or groff that have
75 # no Unix counterparts. Note that the groff versions of eqn and tbl
76 # will not work with Unix troff.
77 g=@g@
79 # Common prefix for installation directories.
80 # Used in definitions of exec_prefix, datasubdir, fontpath, manroot.
81 # This must already exist when you do make install.
82 prefix=@prefix@
83 exec_prefix=@exec_prefix@
85 # bindir says where to install executables.
86 bindir=@bindir@
88 # libdir says where to install platform-dependent data
89 libdir=@libdir@
90 libprogramdir=$(libdir)/groff
92 # datasubdir says where to install platform-independent data files
93 datadir=@datadir@
94 dataprogramdir=$(datadir)/groff
95 datasubdir=$(dataprogramdir)/$(version)$(revision)
97 # fontdir says where to install dev*/*.
98 fontdir=$(datasubdir)/font
100 # fontpath says where to look for dev*/*.
101 fontpath=$(fontdir):/usr/lib/font
103 # tmacdir says where to install macros.
104 tmacdir=$(datasubdir)/tmac
106 # systemtmacdir says where to install platform-dependent macros
107 systemtmacdir=$(libprogramdir)/site-tmac
109 # localtmacdir says where local files will be installed
110 localtmacdir=$(dataprogramdir)/site-tmac
112 # tmacpath says where to look for macro files.
113 # The current directory will be prepended in unsafe mode only; the home
114 # directory will be always added.
115 # `troffrc' and `troffrc-end' (and `eqnrc') are searched neither in the
116 # current nor in the home directory.
117 tmacpath=$(systemtmacdir):$(localtmacdir):$(tmacdir)
119 # sys_tmac_prefix is prefix (if any) for system macro packages
120 sys_tmac_prefix=@sys_tmac_prefix@
122 # tmac_wrap is list of system macro packages that should be made
123 # available to groff by creating a corresponding macro package
124 # in the groff macro directory that references the system macro
125 # package.
126 tmac_wrap=@tmac_wrap@
128 # If there is a groff version of a macro package listed in $(tmac_wrap),
129 # then the groff version will be installed with a prefix of this.
130 # Don't make this empty.
131 tmac_prefix=g
133 # The groff -mm macros will be available as -m$(tmac_m_prefix)m.
134 tmac_m_prefix=\
135 `for i in $(tmac_wrap) ""; do case "$$i" in m) echo $(tmac_prefix);; esac; done`
136 # The groff -ms macros will be available as -m$(tmac_s_prefix)s.
137 tmac_s_prefix=\
138 `for i in $(tmac_wrap) ""; do case "$$i" in s) echo $(tmac_prefix);; esac; done`
139 # The groff -man macros will be available as -m$(tmac_an_prefix)an.
140 tmac_an_prefix=\
141 `for i in $(tmac_wrap) ""; do case "$$i" in an) echo $(tmac_prefix);; esac; done`
143 # Extension to be used for refer index files. Index files are not
144 # sharable between different architectures, so you might want to use
145 # different suffixes for different architectures. Choose an extension
146 # that doesn't conflict with refer or any other indexing program.
147 indexext=.i
149 # Directory containing the default index for refer.
150 indexdir=/usr/dict/papers
152 # The filename (without suffix) of the default index for refer.
153 indexname=Ind
155 # common_words_file is a file containing a list of common words.
156 # If your system provides /usr/lib/eign it will be copied onto this,
157 # otherwise the supplied eign file will be used.
158 common_words_file=$(datasubdir)/eign
160 # manroot is the root of the man page directory tree.
161 mandir=@mandir@
162 manroot=$(mandir)
164 # man1ext is the man section for user commands.
165 man1ext=1
166 man1dir=$(manroot)/man$(man1ext)
168 # man5ext is the man section for file formats.
169 man5ext=5
170 man5dir=$(manroot)/man$(man5ext)
172 # man7ext is the man section for macros.
173 man7ext=7
174 man7dir=$(manroot)/man$(man7ext)
176 # DEFINES should include the following:
177 # -DHAVE_MMAP if you have mmap() and <sys/mman.h>
178 # -DARRAY_DELETE_NEEDS_SIZE if your C++ doesn't understand `delete []'
179 # -DSYS_SIGLIST_DECLARED if you have sys_siglist[]
180 # -DWCOREFLAG=0200 if the 0200 bit of the status returned by
181 # wait() indicates whether a core image was
182 # produced for a process that was terminated
183 # by a signal
185 # -DHAVE_DIRENT_H if you have <dirent.h>
186 # -DHAVE_LIMITS_H if you have <limits.h>
187 # -DHAVE_CC_LIMITS_H if you have a C++ <limits.h>
188 # -DHAVE_MATH_H if you have <math.h>
189 # -DHAVE_CC_OSFCN_H if you have a C++ <osfcn.h>
190 # -DHAVE_STDINT_H if you have <stdint.h>
191 # -DHAVE_STDLIB_H if you have <stdlib.h>
192 # -DHAVE_STRING_H if you have <string.h>
193 # -DHAVE_STRINGS_H if you have <strings.h>
194 # -DHAVE_SYS_DIR_H if you have <sys/dir.h>
195 # -DHAVE_SYS_TIME_H if you have <sys/time.h>
196 # -DHAVE_UNISTD_H if you have <unistd.h>
198 # -DHAVE_FMOD if you have fmod()
199 # -DHAVE_GETCWD if you have getcwd()
200 # -DHAVE_GETTIMEOFDAY if you have gettimeofday()
201 # -DHAVE_MKSTEMP if you have mkstemp()
202 # -DHAVE_MMAP if you have mmap()
203 # -DHAVE_PUTENV if you have putenv()
204 # -DHAVE_RENAME if you have rename()
205 # -DHAVE_SNPRINTF if you have snprintf()
206 # -DHAVE_STRCASECMP if you have strcasecmp()
207 # -DHAVE_STRNCASECMP if you have strncasecmp()
208 # -DHAVE_STRERROR if you have strerror()
209 # -DHAVE_STRSEP if you have strsep()
210 # -DHAVE_STRTOL if you have strtol()
212 # -DNEED_DECLARATION_GETTIMEOFTODAY
213 # if your C++ <sys/time.h> doesn't declare
214 # gettimeofday()
215 # -DNEED_DECLARATION_HYPOT if your C++ <math.h> doesn't declare hypot()
216 # -DNEED_DECLARATION_PCLOSE if your C++ <stdio.h> doesn't declare pclose()
217 # -DNEED_DECLARATION_POPEN if your C++ <stdio.h> doesn't declare popen()
218 # -DNEED_DECLARATION_PUTENV if your C++ <stdlib.h> doesn't declare putenv()
219 # -DNEED_DECLARATION_STRCASECMP if your C++ <string.h> doesn't declare
220 # strcasecmp()
221 # -DNEED_DECLARATION_STRNCASECMP
222 # if your C++ <string.h> doesn't declare
223 # strncasecmp()
225 # -DRET_TYPE_SRAND_IS_VOID if srand() returns void not int
226 # -DHAVE_SYS_NERR if you have sysnerr in <errno.h> or <stdio.h>
227 # -DHAVE_SYS_ERRLIST if you have sys_errlist in <errno.h> or
228 # <stdio.h>
229 # -DTRADITIONAL_CPP if your C++ compiler uses a traditional
230 # (Reiser) preprocessor
231 # -DLONG_FOR_TIME_T if localtime() takes a long * not a time_t *
232 # -DHAVE_STRUCT_EXCEPTION if <math.h> defines struct exception
233 # -DRETSIGTYPE=int if signal handlers return int not void
234 # -DIS_EBCDIC_HOST if the host's encoding is EBCDIC
235 # -DPAGEA4 if the the printer's page size is A4
236 DEFINES=@DEFS@
238 # Include
240 # fmod.o, getcwd.o, mkstemp.o, putenv.o, snprintf.o, strerror.o, strtol.o
242 # in LIBOBJS if your C library is missing the corresponding function.
243 LIBOBJS=@LIBOBJS@
245 # CCC is the compiler for C++ (.cc) files.
246 CCC=@CXX@
247 CC=@CC@
248 # CCDEFINES are definitions for C++ compilations.
249 CCDEFINES=$(DEFINES)
250 # CDEFINES are definitions for C compilations.
251 CDEFINES=$(DEFINES)
253 CCFLAGS=@CXXFLAGS@
254 CFLAGS=@CFLAGS@
255 LDFLAGS=@LDFLAGS@
256 YACC=@YACC@
257 YACCFLAGS=-v
259 LIBS=@LIBS@
260 LIBM=@LIBM@
261 RANLIB=@RANLIB@
262 INSTALL=@INSTALL@
263 INSTALL_PROGRAM=@INSTALL_PROGRAM@
264 INSTALL_SCRIPT=@INSTALL_SCRIPT@
265 INSTALL_DATA=@INSTALL_DATA@
266 LN_S=@LN_S@
267 AR=ar
268 ETAGS=etags
269 ETAGSFLAGS=
270 # Flag that tells etags to assume C++.
271 ETAGSCCFLAG=-C
272 # Full path to perl.
273 PERLPATH=@PERLPATH@
274 # Sed command with which to edit sh scripts.
275 SH_SCRIPT_SED_CMD=@SH_SCRIPT_SED_CMD@
277 # the program to create directory hierarchies
278 mkinstalldirs=$(top_srcdir)/mkinstalldirs
280 PURIFY=purify
281 PURIFYCCFLAGS=
282 #PURIFYCCFLAGS=-g++=yes \
283 # -collector=`dirname \`$(CCC) -print-libgcc-file-name\``/ld
285 # Passing down MAKEOVERRIDES prevents $(MAKE) from containing a second
286 # copy of $(MDEFINES) when making individual directories; this could
287 # cause the argument list to become too long on some systems.
288 MDEFINES= \
289 "MAKEOVERRIDES=$(MAKEOVERRIDES)" \
290 "PAGE=$(PAGE)" \
291 "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
292 "DEVICE=$(DEVICE)" \
293 "TTYDEVDIRS=$(TTYDEVDIRS)" \
294 "PSPRINT=$(PSPRINT)" \
295 "DVIPRINT=$(DVIPRINT)" \
296 "top_srcdir=$(top_srcdir)" \
297 "top_builddir=$(top_builddir)" \
298 "prefix=$(prefix)" \
299 "exec_prefix=$(exec_prefix)" \
300 "g=$(g)" \
301 "datadir=$(datadir)" \
302 "dataprogramdir=$(dataprogramdir)" \
303 "datasubdir=$(datasubdir)" \
304 "libdir=$(libdir)" \
305 "libprogramdir=$(libprogramdir)" \
306 "bindir=$(bindir)" \
307 "fontdir=$(fontdir)" \
308 "fontpath=$(fontpath)" \
309 "tmacdir=$(tmacdir)" \
310 "systemtmacdir=$(systemtmacdir)" \
311 "localtmacdir=$(localtmacdir)" \
312 "tmacpath=$(tmacpath)" \
313 "indexext=$(indexext)" \
314 "indexdir=$(indexdir)" \
315 "indexname=$(indexname)" \
316 "common_words_file=$(common_words_file)" \
317 "manroot=$(manroot)" \
318 "man1ext=$(man1ext)" \
319 "man1dir=$(man1dir)" \
320 "man5ext=$(man5ext)" \
321 "man5dir=$(man5dir)" \
322 "man7ext=$(man7ext)" \
323 "man7dir=$(man7dir)" \
324 "mkinstalldirs=$(mkinstalldirs)" \
325 "tmac_wrap=$(tmac_wrap)" \
326 "sys_tmac_prefix=$(sys_tmac_prefix)" \
327 "tmac_an_prefix=$(tmac_an_prefix)" \
328 "tmac_s_prefix=$(tmac_s_prefix)" \
329 "tmac_m_prefix=$(tmac_m_prefix)" \
330 "CCC=$(CCC)" \
331 "CC=$(CC)" \
332 "CCDEFINES=$(CCDEFINES)" \
333 "CDEFINES=$(CDEFINES)" \
334 "CCFLAGS=$(CCFLAGS)" \
335 "CFLAGS=$(CFLAGS)" \
336 "LDFLAGS=$(LDFLAGS)" \
337 "YACC=$(YACC)" \
338 "YACCFLAGS=$(YACCFLAGS)" \
339 "LIBM=$(LIBM)" \
340 "LIBS=$(LIBS)" \
341 "LIBOBJS=$(LIBOBJS)" \
342 "RANLIB=$(RANLIB)" \
343 "AR=$(AR)" \
344 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
345 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
346 "INSTALL_DATA=$(INSTALL_DATA)" \
347 "ETAGS=$(ETAGS)" \
348 "ETAGSFLAGS=$(ETAGSFLAGS)" \
349 "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
350 "PERLPATH=$(PERLPATH)" \
351 "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \
352 "PURIFY=$(PURIFY)" \
353 "PURIFYCCFLAGS=$(PURIFYCCFLAGS)"
355 SHELL=/bin/sh
356 INCDIRS=src/include
357 LIBDIRS=\
358 src/libs/libgroff \
359 src/libs/libdriver \
360 src/libs/libbib
361 CCPROGDIRS=\
362 src/roff/groff \
363 src/roff/troff \
364 src/preproc/tbl \
365 src/preproc/pic \
366 src/preproc/eqn \
367 src/preproc/grn \
368 src/preproc/refer \
369 src/preproc/soelim \
370 src/preproc/html \
371 src/devices/grops \
372 src/devices/grotty \
373 src/devices/grodvi \
374 src/devices/grolj4 \
375 src/devices/grohtml \
376 src/devices/grolbp \
377 src/utils/tfmtodit \
378 src/utils/hpftodit \
379 src/utils/lookbib \
380 src/utils/indxbib \
381 src/utils/lkbib \
382 src/utils/addftinfo
383 CPROGDIRS=src/utils/pfbtops
384 PROGDIRS=$(CCPROGDIRS) $(CPROGDIRS)
385 DEVDIRS=\
386 font/devps \
387 font/devdvi \
388 font/devX75 \
389 font/devX75-12 \
390 font/devX100 \
391 font/devX100-12 \
392 font/devlj4 \
393 font/devhtml \
394 font/devlbp
395 ALLTTYDEVDIRS=\
396 font/devascii \
397 font/devlatin1 \
398 font/devutf8 \
399 font/devcp1047
400 OTHERDIRS=\
401 man \
402 tmac \
403 src/utils/afmtodit \
404 src/roff/grog \
405 src/roff/nroff \
406 contrib/mm \
407 contrib/pic2graph \
408 contrib/groffer
409 ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \
410 $(DEVDIRS) $(TTYDEVDIRS) $(OTHERDIRS)
411 EXTRADIRS=\
412 font/devps/generate \
413 font/devdvi/generate \
414 src/xditview \
416 DISTDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \
417 $(DEVDIRS) $(ALLTTYDEVDIRS) $(OTHERDIRS) $(EXTRADIRS)
418 TARGETS=all install install_bin install_data clean distclean mostlyclean \
419 realclean extraclean distfiles TAGS depend uninstall_sub
421 # This ENVSETUP gork is required by the DJGPP build on Windows 9X,
422 # where Make needs to be case-sensitive to find files like BI and VERSION.
423 ENVSETUP=\
424 if test -f $(srcdir)/makefile.ccpg* && \
425 test -f $(srcdir)/Makefile.ccpg*; \
426 then FNCASE=y; export FNCASE; \
427 else :; \
430 do=all
431 dodirs=$(ALLDIRS) dot
432 # Default target for subdir_Makefile
433 subdir=src/roff/troff
436 $(TARGETS):
437 @$(ENVSETUP); $(MAKE) $(MDEFINES) do=$@ $(dodirs)
439 dot: FORCE
440 @$(ENVSETUP); \
441 $(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
442 -f $(top_srcdir)/Makefile.comm \
443 -f $(top_srcdir)/Makefile.sub $(do)
445 $(LIBDIRS): FORCE
446 @$(ENVSETUP); \
447 if test $(srcdir) = .; \
448 then srcdir=.; \
449 else srcdir=`cd $(srcdir); pwd`/$@; \
450 fi; \
451 test -d $@ || $(mkinstalldirs) $@; \
452 cd $@; \
453 test -f Makefile.dep || touch Makefile.dep; \
454 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
455 -f $(top_srcdir)/Makefile.comm \
456 -f $$srcdir/Makefile.sub \
457 -f $(top_srcdir)/Makefile.lib \
458 -f Makefile.dep $(do)
460 $(CPROGDIRS): FORCE
461 @$(ENVSETUP); \
462 if test $(srcdir) = .; \
463 then srcdir=.; \
464 else srcdir=`cd $(srcdir); pwd`/$@; \
465 fi; \
466 test -d $@ || $(mkinstalldirs) $@; \
467 cd $@; \
468 test -f Makefile.dep || touch Makefile.dep; \
469 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
470 -f $(top_srcdir)/Makefile.comm \
471 -f $$srcdir/Makefile.sub \
472 -f $(top_srcdir)/Makefile.cpg \
473 -f Makefile.dep $(do)
475 $(CCPROGDIRS): FORCE
476 @$(ENVSETUP); \
477 if test $(srcdir) = .; \
478 then srcdir=.; \
479 else srcdir=`cd $(srcdir); pwd`/$@; \
480 fi; \
481 test -d $@ || $(mkinstalldirs) $@; \
482 cd $@; \
483 test -f Makefile.dep || touch Makefile.dep; \
484 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
485 -f $(top_srcdir)/Makefile.comm \
486 -f $$srcdir/Makefile.sub \
487 -f $(top_srcdir)/Makefile.ccpg \
488 -f Makefile.dep $(do)
490 $(DEVDIRS) $(TTYDEVDIRS): FORCE
491 @$(ENVSETUP); \
492 if test $(srcdir) = .; \
493 then srcdir=.; \
494 else srcdir=`cd $(srcdir); pwd`/$@; \
495 fi; \
496 test -d $@ || $(mkinstalldirs) $@; \
497 cd $@; \
498 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
499 -f $(top_srcdir)/Makefile.comm \
500 -f $$srcdir/Makefile.sub \
501 -f $(top_srcdir)/Makefile.dev $(do)
503 $(INCDIRS) $(OTHERDIRS): FORCE
504 @$(ENVSETUP); \
505 if test $(srcdir) = .; \
506 then srcdir=.; \
507 else srcdir=`cd $(srcdir); pwd`/$@; \
508 fi; \
509 test -d $@ || $(mkinstalldirs) $@; \
510 cd $@; \
511 $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
512 -f $(top_srcdir)/Makefile.comm \
513 -f $$srcdir/Makefile.sub \
514 -f $(top_srcdir)/Makefile.man $(do)
516 .PHONY: dist
517 dist:
518 -rm -fr tmp
519 rm -f groff-$(version)$(revision).tar.gz
520 mkdir tmp
521 for d in $(DISTDIRS); do \
522 $(mkinstalldirs) tmp/$$d; \
523 done
524 srcdir=`cd $(srcdir); pwd`; \
525 cd tmp; \
526 $(LN_S) ../Makefile .; \
527 $(LN_S) $$srcdir/* . 2>/dev/null || true; \
528 rm -rf CVS; \
529 for d in $(DISTDIRS); do \
530 (cd $$d; \
531 $(LN_S) $$srcdir/$$d/* . 2>/dev/null; \
532 rm -rf CVS || true); \
533 done; \
534 $(MAKE) srcdir=. VPATH=. distfiles; \
535 $(MAKE) srcdir=. VPATH=. extraclean; \
536 for d in $(EXTRADIRS); do \
537 (cd $$d; $(MAKE) extraclean); \
538 done; \
539 rm -f Makefile; \
540 $(LN_S) $$srcdir/Makefile.init Makefile
541 mv tmp groff-$(version)$(revision)
542 tar cfh - groff-$(version)$(revision) | \
543 gzip -c >groff-$(version)$(revision).tar.gz
544 rm -fr groff-$(version)$(revision)
546 # $(PROGDIRS): libgroff
547 # grops grotty grodvi: libdriver
548 # refer lookbib indxbib lkbib: libbib
549 # $(LIBDIRS) $(PROGDIRS): include
551 .PHONY: $(ALLDIRS) dot $(TARGETS) FORCE
553 # Create a Makefile in $(subdir). This is useful for development since it
554 # avoids running make recursively.
555 subdir_Makefile: Makefile.cfg
556 $(MAKE) do=Makefile $(subdir)
558 Makefile.cfg: Makefile
559 >Makefile.cfg
560 for var in $(MDEFINES); do \
561 echo "$$var" >>Makefile.cfg; \
562 done
564 Makefile: Makefile.in
565 $(SHELL) config.status
567 .PHONY: uninstall
568 uninstall: uninstall_sub uninstall_dirs
570 .PHONY: uninstall_dirs
571 uninstall_dirs:
572 # Use rmdir here so that the directories are only removed if they're empty
573 -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \
574 $(tmacdir) $(systemtmacdir) $(localtmacdir) $(fontdir) $(bindir) \
575 $(datasubdir) $(dataprogramdir) $(datadir) \
576 $(libprogramdir) $(libdir)
579 .PHONY: check
580 check:
582 FORCE:
584 .NOEXPORT: