summaryrefslogtreecommitdiffstats
path: root/contrib/groff/Makefile.in
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-12-05 18:49:44 +0000
committerru <ru@FreeBSD.org>2000-12-05 18:49:44 +0000
commita812d8b090bc4edc23150bff257717b24f282e41 (patch)
tree19d4540966cb92612af25d5154efcc062eefb5c5 /contrib/groff/Makefile.in
parent2e2c9047c3a8b5b6fdcdcd4585d5b114f31cd386 (diff)
downloadFreeBSD-src-a812d8b090bc4edc23150bff257717b24f282e41.zip
FreeBSD-src-a812d8b090bc4edc23150bff257717b24f282e41.tar.gz
Virgin import of FSF groff v1.16.1
Diffstat (limited to 'contrib/groff/Makefile.in')
-rw-r--r--contrib/groff/Makefile.in303
1 files changed, 214 insertions, 89 deletions
diff --git a/contrib/groff/Makefile.in b/contrib/groff/Makefile.in
index dd0ef84..9856aab 100644
--- a/contrib/groff/Makefile.in
+++ b/contrib/groff/Makefile.in
@@ -1,4 +1,4 @@
-# Copyright (C) 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
+# Copyright (C) 1989-2000 Free Software Foundation, Inc.
# Written by James Clark (jjc@jclark.com)
#
# This file is part of groff.
@@ -48,6 +48,10 @@ BROKEN_SPOOLER_FLAGS=@BROKEN_SPOOLER_FLAGS@
# DEVICE is the default device.
DEVICE=ps
+# TTYDEVDIRS is either `font/devascii font/devlatin1 font/devutf8' (for
+# ASCII) or `font/devcp1047' (for EBCDIC).
+TTYDEVDIRS=@TTYDEVDIRS@
+
# PSPRINT is the command to use for printing a PostScript file,
# for example `lpr'.
PSPRINT=@PSPRINT@
@@ -74,7 +78,7 @@ exec_prefix=@exec_prefix@
bindir=$(exec_prefix)/bin
# datasubdir says where to install data files
-datadir=$(prefix)/share
+datadir=@datadir@
datasubdir=$(datadir)/groff
# fontdir says where to install dev*/*.
@@ -103,13 +107,13 @@ tmac_wrap=@tmac_wrap@
# Don't make this empty.
tmac_prefix=g
-# The groff -mm macros will be available as -m($(tmac_m_prefix)m.
+# The groff -mm macros will be available as -m$(tmac_m_prefix)m.
tmac_m_prefix=\
`for i in $(tmac_wrap) ""; do case "$$i" in m) echo $(tmac_prefix);; esac; done`
-# The groff -ms macros will be available as -m($(tmac_m_prefix)s.
+# The groff -ms macros will be available as -m$(tmac_s_prefix)s.
tmac_s_prefix=\
`for i in $(tmac_wrap) ""; do case "$$i" in s) echo $(tmac_prefix);; esac; done`
-# The groff -man macros will be available as -m($(tmac_m_prefix)an.
+# The groff -man macros will be available as -m$(tmac_an_prefix)an.
tmac_an_prefix=\
`for i in $(tmac_wrap) ""; do case "$$i" in an) echo $(tmac_prefix);; esac; done`
@@ -131,7 +135,7 @@ indexname=Ind
common_words_file=$(datasubdir)/eign
# manroot is the root of the man page directory tree.
-manroot=$(prefix)/man
+manroot=@mandir@
# man1ext is the man section for user commands.
man1ext=1
@@ -160,25 +164,32 @@ man7dir=$(manroot)/man$(man7ext)
# -DHAVE_CC_LIMITS_H if you have a C++ <limits.h>
# -DHAVE_SYS_DIR_H if you have <sys/dir.h>
# -DHAVE_STDLIB_H if you have <stdlib.h>
+# -DHAVE_STRINGS_H if you have <strings.h>
# -DHAVE_RENAME if you have rename()
# -DHAVE_MKSTEMP if you have mkstemp()
-# -DSTDLIB_H_DECLARES_GETOPT if your C++ <stdlib.h> declares getopt()
-# -DUNISTD_H_DECLARES_GETOPT if your C++ <unistd.h> declares getopt()
-# -DSTDLIB_H_DECLARES_PUTENV if your C++ <stdlib.h> declares putenv()
-# -DSTDIO_H_DECLARES_POPEN if your C++ <stdio.h> declares popen()
-# -DSTDIO_H_DECLARES_PCLOSE if your C++ <stdio.h> declares pclose()
+# -DHAVE_STRDUP if you have strdup()
+# -DHAVE_STRSEP if you have strsep()
+# -DHAVE_STRCASECMP if you have strcasecmp()
+# -DNEED_DECLARATION_HYPOT if your C++ <math.h> doesn't declare hypot()
+# -DNEED_DECLARATION_PUTENV if your C++ <stdlib.h> doesn't declare putenv()
+# -DNEED_DECLARATION_POPEN if your C++ <stdio.h> doesn't declare popen()
+# -DNEED_DECLARATION_PCLOSE if your C++ <stdio.h> doesn't declare pclose()
+# -DNEED_DECLARATION_STRNCASECMP
+# if your C++ <string.h> doesn't declare
+# strncasecmp()
+# -DRET_TYPE_SRAND_IS_VOID if your srand() returns void or int
# -DHAVE_SYS_NERR if you have sysnerr in <errno.h> or <stdio.h>
# -DHAVE_SYS_ERRLIST if you have sys_errlist in <errno.h> or
# <stdio.h>
-# -DMATH_H_DECLARES_HYPOT if you have hypot() in <math.h>
# -DTRADITIONAL_CPP if your C++ compiler uses a traditional
# (Reiser) preprocessor
# -DLONG_FOR_TIME_T if localtime() takes a long * not a time_t *
# -DHAVE_STRUCT_EXCEPTION if <math.h> defines struct exception
# -DRETSIGTYPE=int if signal handlers return int not void
+# -DIS_EBCDIC_HOST if the host's encoding is EBCDIC
DEFINES=@DEFS@
-# Include fmod.o, strtol.o, getcwd.o, strerror.o, putenv.o in LIBOBJS if
+# Include fmod.o, strtol.o, getcwd.o, strerror.o, putenv.o in LIBOBJS if
# your C library is missing the corresponding function.
LIBOBJS=@LIBOBJS@
@@ -201,6 +212,7 @@ LIBM=@LIBM@
RANLIB=@RANLIB@
INSTALL=@INSTALL@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
+INSTALL_SCRIPT=@INSTALL_SCRIPT@
INSTALL_DATA=@INSTALL_DATA@
LN_S=@LN_S@
AR=ar
@@ -212,8 +224,14 @@ ETAGSCCFLAG=-C
PERLPATH=@PERLPATH@
# Sed command with which to edit sh scripts.
SH_SCRIPT_SED_CMD=@SH_SCRIPT_SED_CMD@
-srcdir = @srcdir@
-VPATH = @srcdir@
+
+srcdir=@srcdir@
+top_srcdir=@top_srcdir@
+VPATH=@srcdir@
+top_builddir=@top_builddir@
+
+# the program to create directory hierarchies
+mkinstalldirs=$(top_srcdir)/mkinstalldirs
PURIFY=purify
PURIFYCCFLAGS=
@@ -223,123 +241,238 @@ PURIFYCCFLAGS=
# Passing down MAKEOVERRIDES prevents $(MAKE) from containing a second
# copy of $(MDEFINES) when making individual directories; this could
# cause the argument list to become too long on some systems.
-MDEFINES="MAKEOVERRIDES=$(MAKEOVERRIDES)" \
- "PAGE=$(PAGE)" "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
- "DEVICE=$(DEVICE)" "PSPRINT=$(PSPRINT)" "DVIPRINT=$(DVIPRINT)" \
- "prefix=$(prefix)" "exec_prefix=$(exec_prefix)" "bindir=$(bindir)" \
- "g=$(g)" "datadir=$(datadir)" "datasubdir=$(datasubdir)" \
- "fontdir=$(fontdir)" "fontpath=$(fontpath)" \
- "tmacdir=$(tmacdir)" "tmacpath=$(tmacpath)" \
- "indexext=$(indexext)" "indexdir=$(indexdir)" \
- "indexname=$(indexname)" "common_words_file=$(common_words_file)" \
- "manroot=$(manroot)" "man1ext=$(man1ext)" "man1dir=$(man1dir)" \
- "man5ext=$(man5ext)" "man5dir=$(man5dir)" \
- "man7ext=$(man7ext)" "man7dir=$(man7dir)" \
- "tmac_wrap=$(tmac_wrap)" "sys_tmac_prefix=$(sys_tmac_prefix)" \
+MDEFINES= \
+ "MAKEOVERRIDES=$(MAKEOVERRIDES)" \
+ "PAGE=$(PAGE)" \
+ "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
+ "DEVICE=$(DEVICE)" \
+ "TTYDEVDIRS=$(TTYDEVDIRS)" \
+ "PSPRINT=$(PSPRINT)" \
+ "DVIPRINT=$(DVIPRINT)" \
+ "top_srcdir=$(top_srcdir)" \
+ "top_builddir=$(top_builddir)" \
+ "prefix=$(prefix)" \
+ "exec_prefix=$(exec_prefix)" \
+ "bindir=$(bindir)" \
+ "g=$(g)" \
+ "datadir=$(datadir)" \
+ "datasubdir=$(datasubdir)" \
+ "fontdir=$(fontdir)" \
+ "fontpath=$(fontpath)" \
+ "tmacdir=$(tmacdir)" \
+ "tmacpath=$(tmacpath)" \
+ "indexext=$(indexext)" \
+ "indexdir=$(indexdir)" \
+ "indexname=$(indexname)" \
+ "common_words_file=$(common_words_file)" \
+ "manroot=$(manroot)" \
+ "man1ext=$(man1ext)" \
+ "man1dir=$(man1dir)" \
+ "man5ext=$(man5ext)" \
+ "man5dir=$(man5dir)" \
+ "man7ext=$(man7ext)" \
+ "man7dir=$(man7dir)" \
+ "mkinstalldirs=$(mkinstalldirs)" \
+ "tmac_wrap=$(tmac_wrap)" \
+ "sys_tmac_prefix=$(sys_tmac_prefix)" \
"tmac_an_prefix=$(tmac_an_prefix)" \
- "tmac_s_prefix=$(tmac_s_prefix)" "tmac_m_prefix=$(tmac_m_prefix)" \
- "CCC=$(CCC)" "CC=$(CC)" "CCDEFINES=$(CCDEFINES)" "CDEFINES=$(CDEFINES)" \
- "CCFLAGS=$(CCFLAGS)" "CFLAGS=$(CFLAGS)" "LDFLAGS=$(LDFLAGS)" \
- "YACC=$(YACC)" "YACCFLAGS=$(YACCFLAGS)" "LIBM=$(LIBM)" \
- "LIBS=$(LIBS)" "LIBOBJS=$(LIBOBJS)" "RANLIB=$(RANLIB)" "AR=$(AR)" \
- "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" "INSTALL_DATA=$(INSTALL_DATA)" \
- "ETAGS=$(ETAGS)" "ETAGSFLAGS=$(ETAGSFLAGS)" "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
- "PERLPATH=$(PERLPATH)" "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \
- "PURIFY=$(PURIFY)" "PURIFYCCFLAGS=$(PURIFYCCFLAGS)"
+ "tmac_s_prefix=$(tmac_s_prefix)" \
+ "tmac_m_prefix=$(tmac_m_prefix)" \
+ "CCC=$(CCC)" \
+ "CC=$(CC)" \
+ "CCDEFINES=$(CCDEFINES)" \
+ "CDEFINES=$(CDEFINES)" \
+ "CCFLAGS=$(CCFLAGS)" \
+ "CFLAGS=$(CFLAGS)" \
+ "LDFLAGS=$(LDFLAGS)" \
+ "YACC=$(YACC)" \
+ "YACCFLAGS=$(YACCFLAGS)" \
+ "LIBM=$(LIBM)" \
+ "LIBS=$(LIBS)" \
+ "LIBOBJS=$(LIBOBJS)" \
+ "RANLIB=$(RANLIB)" \
+ "AR=$(AR)" \
+ "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
+ "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
+ "INSTALL_DATA=$(INSTALL_DATA)" \
+ "ETAGS=$(ETAGS)" \
+ "ETAGSFLAGS=$(ETAGSFLAGS)" \
+ "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
+ "PERLPATH=$(PERLPATH)" \
+ "SH_SCRIPT_SED_CMD=$(SH_SCRIPT_SED_CMD)" \
+ "PURIFY=$(PURIFY)" \
+ "PURIFYCCFLAGS=$(PURIFYCCFLAGS)"
SHELL=/bin/sh
-INCDIRS=include
-LIBDIRS=libgroff libdriver libbib
-CCPROGDIRS=groff troff tbl pic eqn grops grotty grodvi tfmtodit \
- grolj4 hpftodit refer lookbib indxbib lkbib soelim addftinfo \
- grohtml
-CPROGDIRS=pfbtops psbb
+INCDIRS=src/include
+LIBDIRS=\
+ src/libs/libgroff \
+ src/libs/libdriver \
+ src/libs/libbib
+CCPROGDIRS=\
+ src/roff/groff \
+ src/roff/troff \
+ src/preproc/tbl \
+ src/preproc/pic \
+ src/preproc/eqn \
+ src/preproc/grn \
+ src/preproc/refer \
+ src/preproc/soelim \
+ src/devices/grops \
+ src/devices/grotty \
+ src/devices/grodvi \
+ src/devices/grolj4 \
+ src/devices/grohtml \
+ src/devices/grolbp \
+ src/utils/tfmtodit \
+ src/utils/hpftodit \
+ src/utils/lookbib \
+ src/utils/indxbib \
+ src/utils/lkbib \
+ src/utils/addftinfo
+CPROGDIRS=src/utils/pfbtops
PROGDIRS=$(CCPROGDIRS) $(CPROGDIRS)
-DEVDIRS=devps devdvi devascii devlatin1 devX75 devX75-12 devX100 devX100-12 \
- devlj4 devhtml
-OTHERDIRS=man tmac afmtodit grog nroff mm
-ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(OTHERDIRS)
-EXTRADIRS=devps/generate devdvi/generate xditview doc
-DISTDIRS=$(ALLDIRS) $(EXTRADIRS)
+DEVDIRS=\
+ font/devps \
+ font/devdvi \
+ font/devX75 \
+ font/devX75-12 \
+ font/devX100 \
+ font/devX100-12 \
+ font/devlj4 \
+ font/devhtml \
+ font/devlbp
+ALLTTYDEVDIRS=\
+ font/devascii \
+ font/devlatin1 \
+ font/devutf8 \
+ font/devcp1047
+OTHERDIRS=\
+ man \
+ tmac \
+ src/utils/afmtodit \
+ src/roff/grog \
+ src/roff/nroff \
+ contrib/mm
+ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \
+ $(DEVDIRS) $(TTYDEVDIRS) $(OTHERDIRS)
+EXTRADIRS=\
+ font/devps/generate \
+ font/devdvi/generate \
+ src/xditview \
+ doc
+DISTDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \
+ $(DEVDIRS) $(ALLTTYDEVDIRS) $(OTHERDIRS) $(EXTRADIRS)
TARGETS=all install install_bin install_data clean distclean mostlyclean \
realclean extraclean distfiles TAGS depend uninstall_sub
+# This ENVSETUP gork is required by the DJGPP build on Windows 9X,
+# where Make needs to be case-sensitive to find files like BI and VERSION.
+ENVSETUP=\
+ if test -f $(srcdir)/makefile.ccpg* && \
+ test -f $(srcdir)/Makefile.ccpg*; \
+ then FNCASE=y; export FNCASE; \
+ else :; \
+ fi
+
do=all
dodirs=$(ALLDIRS) dot
# Default target for subdir_Makefile
-subdir=troff
+subdir=src/roff/troff
$(TARGETS):
- @$(MAKE) $(MDEFINES) do=$@ $(dodirs)
+ @$(ENVSETUP); $(MAKE) $(MDEFINES) do=$@ $(dodirs)
dot: FORCE
- @$(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
- -f $(srcdir)/Makefile.comm -f $(srcdir)/Makefile.sub $(do)
+ @$(ENVSETUP); \
+ $(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
+ -f $(top_srcdir)/Makefile.comm \
+ -f $(top_srcdir)/Makefile.sub $(do)
$(LIBDIRS): FORCE
- @if test $(srcdir) = .; \
+ @$(ENVSETUP); \
+ if test $(srcdir) = .; \
then srcdir=.; \
else srcdir=`cd $(srcdir); pwd`/$@; \
fi; \
- test -d $@ || mkdir $@; \
+ test -d $@ || $(mkinstalldirs) $@; \
cd $@; \
+ test -f Makefile.dep || touch Makefile.dep; \
$(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
- -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
- -f $$srcdir/../Makefile.lib -f $$srcdir/Makefile.dep $(do)
+ -f $(top_srcdir)/Makefile.comm \
+ -f $$srcdir/Makefile.sub \
+ -f $(top_srcdir)/Makefile.lib \
+ -f Makefile.dep $(do)
$(CPROGDIRS): FORCE
- @if test $(srcdir) = .; \
+ @$(ENVSETUP); \
+ if test $(srcdir) = .; \
then srcdir=.; \
else srcdir=`cd $(srcdir); pwd`/$@; \
fi; \
- test -d $@ || mkdir $@; \
+ test -d $@ || $(mkinstalldirs) $@; \
cd $@; \
+ test -f Makefile.dep || touch Makefile.dep; \
$(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
- -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
- -f $$srcdir/../Makefile.cpg -f $$srcdir/Makefile.dep $(do)
+ -f $(top_srcdir)/Makefile.comm \
+ -f $$srcdir/Makefile.sub \
+ -f $(top_srcdir)/Makefile.cpg \
+ -f Makefile.dep $(do)
$(CCPROGDIRS): FORCE
- @if test $(srcdir) = .; \
+ @$(ENVSETUP); \
+ if test $(srcdir) = .; \
then srcdir=.; \
else srcdir=`cd $(srcdir); pwd`/$@; \
fi; \
- test -d $@ || mkdir $@; \
+ test -d $@ || $(mkinstalldirs) $@; \
cd $@; \
+ test -f Makefile.dep || touch Makefile.dep; \
$(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
- -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
- -f $$srcdir/../Makefile.ccpg -f $$srcdir/Makefile.dep $(do)
-
-$(DEVDIRS): FORCE
- @if test $(srcdir) = .; \
+ -f $(top_srcdir)/Makefile.comm \
+ -f $$srcdir/Makefile.sub \
+ -f $(top_srcdir)/Makefile.ccpg \
+ -f Makefile.dep $(do)
+
+$(DEVDIRS) $(TTYDEVDIRS): FORCE
+ @$(ENVSETUP); \
+ if test $(srcdir) = .; \
then srcdir=.; \
else srcdir=`cd $(srcdir); pwd`/$@; \
fi; \
- test -d $@ || mkdir $@; \
+ test -d $@ || $(mkinstalldirs) $@; \
cd $@; \
$(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
- -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
- -f $$srcdir/../Makefile.dev $(do)
+ -f $(top_srcdir)/Makefile.comm \
+ -f $$srcdir/Makefile.sub \
+ -f $(top_srcdir)/Makefile.dev $(do)
$(INCDIRS) $(OTHERDIRS): FORCE
- @if test $(srcdir) = .; \
+ @$(ENVSETUP); \
+ if test $(srcdir) = .; \
then srcdir=.; \
else srcdir=`cd $(srcdir); pwd`/$@; \
fi; \
- test -d $@ || mkdir $@; \
+ test -d $@ || $(mkinstalldirs) $@; \
cd $@; \
$(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
- -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
- -f $$srcdir/../Makefile.man $(do)
+ -f $(top_srcdir)/Makefile.comm \
+ -f $$srcdir/Makefile.sub \
+ -f $(top_srcdir)/Makefile.man $(do)
-version=`cat $(srcdir)/VERSION`
+version=`cat $(top_srcdir)/VERSION`
+# No additional number for the groff archive if revision is zero
+revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(top_srcdir)/REVISION`
.PHONY: dist
dist:
-rm -fr tmp
+ rm -f groff-$(version)$(revision).tar.gz
+ rm -f src/xditview/Imakefile;
mkdir tmp
for d in $(DISTDIRS); do \
- mkdir tmp/$$d; \
+ $(mkinstalldirs) tmp/$$d; \
done
srcdir=`cd $(srcdir); pwd`; \
cd tmp; \
@@ -354,10 +487,10 @@ dist:
done; \
rm -f Makefile; \
$(LN_S) $$srcdir/Makefile.init Makefile
- mv tmp groff-$(version)
- rm -f groff-$(version).tar.gz
- tar cfh - groff-$(version) | gzip -c >groff-$(version).tar.gz
- rm -fr groff-$(version)
+ mv tmp groff-$(version)$(revision)
+ tar cfh - groff-$(version)$(revision) | \
+ gzip -c >groff-$(version)$(revision).tar.gz
+ rm -fr groff-$(version)$(revision)
# $(PROGDIRS): libgroff
# grops grotty grodvi: libdriver
@@ -375,14 +508,6 @@ Makefile.cfg: Makefile
echo "$$var" >>Makefile.cfg; \
done
-depend: srcdir_must_be_dot
-
-.PHONY: srcdir_must_be_dot
-srcdir_must_be_dot:
- @test "X$(srcdir)" = "X." \
- || (echo This target can only be made in the source directory; \
- exit 1)
-
Makefile: Makefile.in
$(SHELL) config.status
OpenPOWER on IntegriCloud