head	1.6;
access;
symbols
	perseant-exfatfs-base-20250801:1.6
	perseant-exfatfs-base-20240630:1.6
	cjep_sun2x:1.6.0.14
	cjep_sun2x-base:1.6
	cjep_staticlib_x-base1:1.6
	cjep_staticlib_x:1.6.0.12
	cjep_staticlib_x-base:1.6
	phil-wifi-20200421:1.6
	phil-wifi-20200411:1.6
	phil-wifi-20200406:1.6
	pgoyette-compat-merge-20190127:1.6
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	netbsd-7-2-RELEASE:1.5
	pgoyette-compat-0728:1.6
	pgoyette-compat-0625:1.6
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	netbsd-7-1-2-RELEASE:1.5
	pgoyette-compat:1.6.0.10
	pgoyette-compat-base:1.6
	netbsd-7-1-1-RELEASE:1.5
	perseant-stdc-iso10646:1.6.0.8
	perseant-stdc-iso10646-base:1.6
	prg-localcount2-base3:1.6
	prg-localcount2-base2:1.6
	prg-localcount2-base1:1.6
	prg-localcount2:1.6.0.6
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	pgoyette-localcount-20170320:1.6
	netbsd-7-1:1.5.0.68
	netbsd-7-1-RELEASE:1.5
	netbsd-7-1-RC2:1.5
	netbsd-7-nhusb-base-20170116:1.5
	bouyer-socketcan:1.6.0.4
	bouyer-socketcan-base:1.6
	pgoyette-localcount-20170107:1.6
	netbsd-7-1-RC1:1.5
	pgoyette-localcount-20161104:1.6
	netbsd-7-0-2-RELEASE:1.5
	localcount-20160914:1.6
	netbsd-7-nhusb:1.5.0.66
	netbsd-7-nhusb-base:1.5
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.2
	pgoyette-localcount-base:1.6
	netbsd-7-0-1-RELEASE:1.5
	netbsd-7-0:1.5.0.64
	netbsd-7-0-RELEASE:1.5
	netbsd-7-0-RC3:1.5
	netbsd-7-0-RC2:1.5
	netbsd-7-0-RC1:1.5
	netbsd-5-2-3-RELEASE:1.5
	netbsd-5-1-5-RELEASE:1.5
	netbsd-6-0-6-RELEASE:1.5
	netbsd-6-1-5-RELEASE:1.5
	netbsd-7:1.5.0.62
	netbsd-7-base:1.5
	yamt-pagecache-base9:1.5
	yamt-pagecache-tag8:1.5
	netbsd-6-1-4-RELEASE:1.5
	netbsd-6-0-5-RELEASE:1.5
	tls-earlyentropy:1.5.0.60
	tls-earlyentropy-base:1.5
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5
	riastradh-drm2-base3:1.5
	netbsd-6-1-3-RELEASE:1.5
	netbsd-6-0-4-RELEASE:1.5
	netbsd-5-2-2-RELEASE:1.5
	netbsd-5-1-4-RELEASE:1.5
	netbsd-6-1-2-RELEASE:1.5
	netbsd-6-0-3-RELEASE:1.5
	netbsd-5-2-1-RELEASE:1.5
	netbsd-5-1-3-RELEASE:1.5
	netbsd-6-1-1-RELEASE:1.5
	riastradh-drm2-base2:1.5
	riastradh-drm2-base1:1.5
	riastradh-drm2:1.5.0.54
	riastradh-drm2-base:1.5
	netbsd-6-1:1.5.0.58
	netbsd-6-0-2-RELEASE:1.5
	netbsd-6-1-RELEASE:1.5
	netbsd-6-1-RC4:1.5
	netbsd-6-1-RC3:1.5
	agc-symver:1.5.0.56
	agc-symver-base:1.5
	netbsd-6-1-RC2:1.5
	netbsd-6-1-RC1:1.5
	yamt-pagecache-base8:1.5
	netbsd-5-2:1.5.0.52
	netbsd-6-0-1-RELEASE:1.5
	yamt-pagecache-base7:1.5
	netbsd-5-2-RELEASE:1.5
	netbsd-5-2-RC1:1.5
	matt-nb6-plus-nbase:1.5
	yamt-pagecache-base6:1.5
	netbsd-6-0:1.5.0.50
	netbsd-6-0-RELEASE:1.5
	netbsd-6-0-RC2:1.5
	tls-maxphys:1.5.0.48
	tls-maxphys-base:1.5
	matt-nb6-plus:1.5.0.46
	matt-nb6-plus-base:1.5
	netbsd-6-0-RC1:1.5
	yamt-pagecache-base5:1.5
	yamt-pagecache-base4:1.5
	netbsd-6:1.5.0.44
	netbsd-6-base:1.5
	netbsd-5-1-2-RELEASE:1.5
	netbsd-5-1-1-RELEASE:1.5
	yamt-pagecache-base3:1.5
	yamt-pagecache-base2:1.5
	yamt-pagecache:1.5.0.42
	yamt-pagecache-base:1.5
	cherry-xenmp:1.5.0.40
	cherry-xenmp-base:1.5
	bouyer-quota2-nbase:1.5
	bouyer-quota2:1.5.0.38
	bouyer-quota2-base:1.5
	matt-mips64-premerge-20101231:1.5
	matt-nb5-mips64-premerge-20101231:1.5
	matt-nb5-pq3:1.5.0.36
	matt-nb5-pq3-base:1.5
	netbsd-5-1:1.5.0.34
	netbsd-5-1-RELEASE:1.5
	netbsd-5-1-RC4:1.5
	matt-nb5-mips64-k15:1.5
	netbsd-5-1-RC3:1.5
	netbsd-5-1-RC2:1.5
	netbsd-5-1-RC1:1.5
	netbsd-5-0-2-RELEASE:1.5
	matt-nb5-mips64-premerge-20091211:1.5
	matt-premerge-20091211:1.5
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.5
	matt-nb4-mips64-k7-u2a-k9b:1.5
	matt-nb5-mips64-u1-k1-k5:1.5
	matt-nb5-mips64:1.5.0.32
	netbsd-5-0-1-RELEASE:1.5
	jym-xensuspend-nbase:1.5
	netbsd-5-0:1.5.0.30
	netbsd-5-0-RELEASE:1.5
	netbsd-5-0-RC4:1.5
	netbsd-5-0-RC3:1.5
	netbsd-5-0-RC2:1.5
	jym-xensuspend:1.5.0.28
	jym-xensuspend-base:1.5
	netbsd-5-0-RC1:1.5
	netbsd-5:1.5.0.26
	netbsd-5-base:1.5
	matt-mips64-base2:1.5
	matt-mips64:1.5.0.24
	mjf-devfs2:1.5.0.22
	mjf-devfs2-base:1.5
	netbsd-4-0-1-RELEASE:1.5
	wrstuden-revivesa-base-3:1.5
	wrstuden-revivesa-base-2:1.5
	wrstuden-fixsa-newbase:1.5
	wrstuden-revivesa-base-1:1.5
	yamt-pf42-base4:1.5
	yamt-pf42-base3:1.5
	hpcarm-cleanup-nbase:1.5
	yamt-pf42-baseX:1.5
	yamt-pf42-base2:1.5
	wrstuden-revivesa:1.5.0.20
	wrstuden-revivesa-base:1.5
	yamt-pf42:1.5.0.18
	yamt-pf42-base:1.5
	keiichi-mipv6:1.5.0.16
	keiichi-mipv6-base:1.5
	matt-armv6-nbase:1.5
	matt-armv6-prevmlocking:1.5
	wrstuden-fixsa-base-1:1.5
	netbsd-4-0:1.5.0.14
	netbsd-4-0-RELEASE:1.5
	cube-autoconf:1.5.0.12
	cube-autoconf-base:1.5
	netbsd-4-0-RC5:1.5
	netbsd-4-0-RC4:1.5
	netbsd-4-0-RC3:1.5
	netbsd-4-0-RC2:1.5
	netbsd-4-0-RC1:1.5
	matt-armv6:1.5.0.10
	matt-armv6-base:1.5
	matt-mips64-base:1.5
	hpcarm-cleanup:1.5.0.8
	hpcarm-cleanup-base:1.5
	netbsd-3-1-1-RELEASE:1.4
	netbsd-3-0-3-RELEASE:1.4
	wrstuden-fixsa:1.5.0.6
	wrstuden-fixsa-base:1.5
	abandoned-netbsd-4-base:1.5
	abandoned-netbsd-4:1.5.0.2
	netbsd-3-1:1.4.0.6
	netbsd-3-1-RELEASE:1.4
	netbsd-3-0-2-RELEASE:1.4
	netbsd-3-1-RC4:1.4
	netbsd-3-1-RC3:1.4
	netbsd-3-1-RC2:1.4
	netbsd-3-1-RC1:1.4
	netbsd-4:1.5.0.4
	netbsd-4-base:1.5
	netbsd-3-0-1-RELEASE:1.4
	groff-1-19-2:1.1.1.4
	netbsd-3-0:1.4.0.4
	netbsd-3-0-RELEASE:1.4
	netbsd-3-0-RC6:1.4
	netbsd-3-0-RC5:1.4
	netbsd-3-0-RC4:1.4
	netbsd-3-0-RC3:1.4
	netbsd-3-0-RC2:1.4
	netbsd-3-0-RC1:1.4
	netbsd-2-0-3-RELEASE:1.3
	netbsd-2-1:1.3.0.6
	netbsd-2-1-RELEASE:1.3
	netbsd-2-1-RC6:1.3
	netbsd-2-1-RC5:1.3
	netbsd-2-1-RC4:1.3
	netbsd-2-1-RC3:1.3
	netbsd-2-1-RC2:1.3
	netbsd-2-1-RC1:1.3
	netbsd-2-0-2-RELEASE:1.3
	netbsd-3:1.4.0.2
	netbsd-3-base:1.4
	netbsd-2-0-1-RELEASE:1.3
	netbsd-2:1.3.0.4
	netbsd-2-base:1.3
	netbsd-2-0-RELEASE:1.3
	netbsd-2-0-RC5:1.3
	netbsd-2-0-RC4:1.3
	netbsd-2-0-RC3:1.3
	netbsd-2-0-RC2:1.3
	netbsd-2-0-RC1:1.3
	groff-1-19-1:1.1.1.3
	netbsd-2-0:1.3.0.2
	netbsd-2-0-base:1.3
	netbsd-1-6-PATCH002-RELEASE:1.1.1.1
	netbsd-1-6-PATCH002:1.1.1.1
	netbsd-1-6-PATCH002-RC4:1.1.1.1
	netbsd-1-6-PATCH002-RC3:1.1.1.1
	netbsd-1-6-PATCH002-RC2:1.1.1.1
	netbsd-1-6-PATCH002-RC1:1.1.1.1
	groff-1-19:1.1.1.2
	netbsd-1-6-PATCH001:1.1.1.1
	netbsd-1-6-PATCH001-RELEASE:1.1.1.1
	netbsd-1-6-PATCH001-RC3:1.1.1.1
	netbsd-1-6-PATCH001-RC2:1.1.1.1
	netbsd-1-6-PATCH001-RC1:1.1.1.1
	fvdl_fs64_base:1.1.1.1
	netbsd-1-6-RELEASE:1.1.1.1
	netbsd-1-6-RC3:1.1.1.1
	netbsd-1-6-RC2:1.1.1.1
	netbsd-1-6-RC1:1.1.1.1
	netbsd-1-6:1.1.1.1.0.2
	netbsd-1-6-base:1.1.1.1
	groff-1-16-1:1.1.1.1
	FSF:1.1.1;
locks; strict;
comment	@# @;


1.6
date	2016.01.13.19.24.59;	author christos;	state dead;
branches;
next	1.5;
commitid	Y4vhQ1Aj99QZ0OQy;

1.5
date	2006.02.06.18.25.47;	author wiz;	state Exp;
branches;
next	1.4;

1.4
date	2004.07.30.14.56.51;	author wiz;	state Exp;
branches;
next	1.3;

1.3
date	2004.03.11.07.23.02;	author cgd;	state Exp;
branches;
next	1.2;

1.2
date	2003.10.26.00.39.23;	author chs;	state Exp;
branches;
next	1.1;

1.1
date	2001.04.19.12.48.08;	author wiz;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.04.19.12.48.08;	author wiz;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2003.06.30.17.51.41;	author wiz;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2004.07.30.14.44.12;	author wiz;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2006.02.06.18.10.40;	author wiz;	state Exp;
branches;
next	;


desc
@@


1.6
log
@groff has moved to external
@
text
@# Copyright (C) 1989-2000, 2002, 2003, 2004 Free Software Foundation, Inc.
#      Written by James Clark (jjc@@jclark.com)
# 
# This file is part of groff.
# 
# groff is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 2, or (at your option) any later
# version.
# 
# groff is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.
# 
# You should have received a copy of the GNU General Public License along
# with groff; see the file COPYING.  If not, write to the Free Software
# Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
#
# Makefile.comm
#
INCLUDES=-I. -I$(srcdir) \
  -I$(top_builddir)/src/include -I$(top_srcdir)/src/include
ALL_CCFLAGS=$(INCLUDES) $(CCDEFINES) $(CCFLAGS) $(CPPFLAGS)
COMPILE.cpp=$(CCC) $(ALL_CCFLAGS) -c
ALL_CFLAGS=$(INCLUDES) $(CDEFINES) $(CFLAGS) $(CPPFLAGS)
COMPILE.c=$(CC) $(ALL_CFLAGS) -c
LINK.cpp=$(CCC) $(CCFLAGS) $(LDFLAGS)
LINK.c=$(CC) $(CFLAGS) $(LDFLAGS)
LIBGROFF=$(top_builddir)/src/libs/libgroff/libgroff.$(LIBEXT)
LIBBIB=$(top_builddir)/src/libs/libbib/libbib.$(LIBEXT)
LIBDRIVER=$(top_builddir)/src/libs/libdriver/libdriver.$(LIBEXT)
LIBXUTIL=$(top_builddir)/src/libs/libxutil/libxutil.$(LIBEXT)
MLIB=
XLIBS=
YTABH=
YTABC=
GRAM=
LIBCLEAN=
CLEANADD=
CLEANDIRADD=
CLEANNOTSRCDIRADD=
MOSTLYCLEANFILES=$(MANCLEAN) $(PROG) $(OBJS) $(GENSRCS) $(GENHDRS) \
  depend.temp core y.output $(CLEANADD)
CLEANFILES=$(LIBCLEAN)
DISTCLEANFILES=TAGS Makefile Makefile.dep
REALCLEANFILES=$(YTABC) $(YTABH)
NAMEPREFIX=
HDRS=
MANPAGES=$(MAN1) $(MAN5) $(MAN7)
MANCLEAN=$(MANPAGES)
fontsubdir=$(fontdir)/dev$(DEV)

all install install_bin install_data TAGS depend distfiles uninstall_sub:

install: prefix_must_exist install_bin install_data
uninstall: uninstall_sub
pure:

.PHONY: all clean distclean mostlyclean realclean extraclean depend distfiles
.PHONY: install install_bin install_data prefix_must_exist
.PHONY: uninstall uninstall_sub
.PHONY: pure

prefix_must_exist:
	@@test -d $(prefix) \
	  || (echo ; \
	      echo The prefix directory \`$(prefix)\' doesn\'t exist; \
	      echo ; \
	      exit 1)

mostlyclean:
	-rm -f $(MOSTLYCLEANFILES)
	-rm -rf $(CLEANDIRADD)
	-@@if test `cd $(srcdir); pwd` = `pwd`; then \
	  :; \
	else \
	  rm -f $(CLEANNOTSRCDIRADD); \
	fi

clean: mostlyclean
	-rm -f $(CLEANFILES)

distclean: clean
	-rm -f $(DISTCLEANFILES)
	-@@if test `cd $(srcdir); pwd` = `pwd`; then \
	  :; \
	else \
	  rm -f $(YTABC) $(YTABH); \
	fi

realclean: distclean
	-rm -f $(REALCLEANFILES)

extraclean: distclean
	-rm -f \#* *~ =* core junk grot old temp tmp tem *.new *.old *.orig

.SUFFIXES:
.SUFFIXES: .o .obj .cpp .c .y .man .n

.cpp.o:
	$(COMPILE.cpp) $(EXTRA_CCFLAGS) $<

.c.o:
	$(COMPILE.c) $(EXTRA_CFLAGS) $<

.cpp.obj:
	$(COMPILE.cpp) $(EXTRA_CCFLAGS) $<

.c.obj:
	$(COMPILE.c) $(EXTRA_CFLAGS) $<

.y.cpp:
	if test -n "$(YTABH)"; then \
	  $(YACC) $(YACCFLAGS) -d $<; \
	else \
	  $(YACC) $(YACCFLAGS) $<; \
	fi
	-test -f y.tab.h && mv y.tab.h y_tab.h
	-test -f y.tab.c && mv y.tab.c y_tab.c
	mv y_tab.c $(YTABC)
	test -z "$(YTABH)" || mv y_tab.h $(YTABH)

# The next rule is needed for make of Solaris 2.5.1 to override its
# built-in .y.o rule (which takes precedence over the .y.cpp rule above).
.y.o:
	if test -n "$(YTABH)"; then \
	  $(YACC) $(YACCFLAGS) -d $<; \
	else \
	  $(YACC) $(YACCFLAGS) $<; \
	fi
	-test -f y.tab.h && mv y.tab.h y_tab.h
	-test -f y.tab.c && mv y.tab.c y_tab.c
	mv y_tab.c $(YTABC)
	test -z "$(YTABH)" || mv y_tab.h $(YTABH)
	$(COMPILE.cpp) $(EXTRA_CCFLAGS) $(YTABC)

.man.n:
	@@echo Making $@@ from $<
	@@-rm -f $@@
	@@sed -e "s|@@BINDIR@@|$(bindir)|g" \
	-e "s|@@FONTDIR@@|$(fontdir)|g" \
	-e "s|@@LOCALFONTDIR@@|$(localfontdir)|g" \
	-e "s|@@LEGACYFONTDIR@@|$(legacyfontdir)|g" \
	-e "s|@@MACRODIR@@|$(tmacdir)|g" \
	-e "s|@@SYSTEMMACRODIR@@|$(systemtmacdir)|g" \
	-e "s|@@LOCALMACRODIR@@|$(localtmacdir)|g" \
	-e "s|@@DOCDIR@@|$(docdir)|g" \
	-e "s|@@EXAMPLEDIR@@|$(exampledir)|g" \
	-e "s|@@HTMLDOCDIR@@|$(htmldocdir)|g" \
	-e "s|@@PDFDOCDIR@@|$(pdfdocdir)|g" \
	-e "s|@@DEVICE@@|$(DEVICE)|g" \
	-e "s|@@DEFAULT_INDEX@@|$(indexdir)/$(indexname)|g" \
	-e "s|@@DEFAULT_INDEX_NAME@@|$(indexname)|g" \
	-e "s|@@INDEX_SUFFIX@@|$(indexext)|g" \
	-e "s|@@COMMON_WORDS_FILE@@|$(common_words_file)|g" \
	-e "s|@@MAN1EXT@@|$(man1ext)|g" \
	-e "s|@@MAN5EXT@@|$(man5ext)|g" \
	-e "s|@@MAN7EXT@@|$(man7ext)|g" \
	-e "s|@@TMAC_S_PREFIX@@|$(tmac_s_prefix)|g" \
	-e "s|@@TMAC_M_PREFIX@@|$(tmac_m_prefix)|g" \
	-e "s|@@TMAC_AN_PREFIX@@|$(tmac_an_prefix)|g" \
	-e "s|@@TMAC_MDIR@@|$(tmacdir)/mm|g" \
	-e "s|@@BROKEN_SPOOLER_FLAGS@@|$(BROKEN_SPOOLER_FLAGS)|g" \
	-e "s|@@VERSION@@|$(version)$(revision)|g" \
	-e "s|@@MDATE@@|`$(SHELL) $(top_srcdir)/mdate.sh $<`|g" \
	-e "s|@@g@@|$(g)|g" \
	-e "s!@@G@@!`echo $(g) | tr [a-z] [A-Z]`!g" \
	$< >$@@

.PHONY: install_man
install_man:
	-test -d $(manroot) || $(mkinstalldirs) $(manroot)
	-test -d $(man1dir) || $(mkinstalldirs) $(man1dir)
	@@-pages="$(MAN1)"; \
	for p in $$pages; do \
	 prog=`basename $$p .n`; \
	 target=$(man1dir)/$(NAMEPREFIX)$$prog.$(man1ext); \
	 rm -f $$target; \
	 echo $(INSTALL_DATA) $$p $$target; \
	 $(INSTALL_DATA) $$p $$target; \
	done
	-test -d $(man5dir) || $(mkinstalldirs) $(man5dir)
	@@-pages="$(MAN5)"; \
	for p in $$pages; do \
	 target=$(man5dir)/`basename $$p .n`.$(man5ext); \
	 rm -f $$target; \
	 echo $(INSTALL_DATA) $$p $$target; \
	 $(INSTALL_DATA) $$p $$target; \
	done
	-test -d $(man7dir) || $(mkinstalldirs) $(man7dir)
	@@-pages="$(MAN7)"; \
	for p in $$pages; do \
	 target=$(man7dir)/`basename $$p .n`.$(man7ext); \
	 rm -f $$target; \
	 echo $(INSTALL_DATA) $$p $$target; \
	 $(INSTALL_DATA) $$p $$target; \
	done

.PHONY: uninstall_man
uninstall_man:
	@@-pages="$(MAN1)"; \
	for p in $$pages; do \
	 target=$(man1dir)/$(NAMEPREFIX)`basename $$p .n`.$(man1ext); \
	 echo rm -f $$target; \
	 rm -f $$target; \
	done
	@@-pages="$(MAN5)"; \
	for p in $$pages; do \
	 target=$(man5dir)/`basename $$p .n`.$(man5ext); \
	 echo rm -f $$target; \
	 rm -f $$target; \
	done
	@@-pages="$(MAN7)"; \
	for p in $$pages; do \
	 target=$(man7dir)/`basename $$p .n`.$(man7ext); \
	 echo rm -f $$target; \
	 rm -f $$target; \
	done

.PHONY: install_prog
install_prog:
	-test -d $(bindir) || $(mkinstalldirs) $(bindir)
	rm -f $(bindir)/$(NAMEPREFIX)$(PROG)
	$(INSTALL_PROGRAM) $(PROG) $(bindir)/$(NAMEPREFIX)$(PROG)

.PHONY: uninstall_prog
uninstall_prog:
	-rm -f $(bindir)/$(NAMEPREFIX)$(PROG)	

.PHONY: install_dev
install_dev:
	-test -d $(datadir) || $(mkinstalldirs) $(datadir)
	-test -d $(dataprogramdir) || $(mkinstalldirs) $(dataprogramdir)
	-test -d $(datasubdir) || $(mkinstalldirs) $(datasubdir)
	-test -d $(fontdir) || $(mkinstalldirs) $(fontdir)
	-test -d $(fontsubdir) || $(mkinstalldirs) $(fontsubdir)
	-if test -d $(srcdir)/generate; then \
	  test -d $(fontsubdir)/generate \
	    || $(mkinstalldirs) $(fontsubdir)/generate; \
	fi
	-test -z "$(DEVFILES)" \
	  || for f in ""$(DEVFILES); do \
	       rm -f $(fontsubdir)/$$f; \
	       if test -f $$f; then \
		 $(INSTALL_DATA) $$f $(fontsubdir)/$$f; \
	       else \
		 $(INSTALL_DATA) $(srcdir)/$$f $(fontsubdir)/$$f; \
	       fi; \
	     done
	-test -z "$(DEVSCRIPTS)" \
	  || for f in ""$(DEVSCRIPTS); do \
	       rm -f $(fontsubdir)/$$f; \
	       if test -f $$f; then \
		 $(INSTALL_SCRIPT) $$f $(fontsubdir)/$$f; \
	       else \
		 $(INSTALL_SCRIPT) $(srcdir)/$$f $(fontsubdir)/$$f; \
	       fi; \
	     done

.PHONY: uninstall_dev
uninstall_dev:
	-test -z "$(DEVFILES)$(DEVSCRIPTS)" \
	  || for f in ""$(DEVFILES) $(DEVSCRIPTS); do \
	       rm -f $(fontsubdir)/$$f; \
	     done
	-test -d $(fontsubdir)/generate && rmdir $(fontsubdir)/generate
	-rmdir $(fontsubdir)

.PHONY: depend_src
depend_src: depend.temp
	mv depend.temp Makefile.dep

depend.temp: FORCE
	> depend.temp;
	if test -f "$(srcdir)/$(YTABC)"; then \
	  ytabc="$(srcdir)/$(YTABC)"; \
	else \
	  ytabc="$(YTABC)"; \
	fi; \
	test -z "$(CCSRCS)$(YTABC)" \
	  || $(CCC) $(ALL_CCFLAGS) -MM $(CCSRCS) $$ytabc >>depend.temp
	test -z "$(CSRCS)" \
	  || $(CC) $(ALL_CFLAGS) -MM $(CSRCS) >>depend.temp
	test -z "$(YTABH)" \
	  || (sed -e 's|$(YTABH)|$(YTABC)|g' depend.temp >depend1.temp; \
	      mv depend1.temp depend.temp)

.PHONY: TAGS_src
TAGS_src:
	$(ETAGS) $(ETAGSFLAGS) $(CCSRCS) $(CSRCS)
	test -z "$(GRAM)$(HDRS)" \
	  || $(ETAGS) $(ETAGSFLAGS) -a $(ETAGSCCFLAG) $(GRAM) $(HDRS)

# This rule is only considered for the subdir_Makefile target.
Makefile:
	-rm -f Makefile
	echo srcdir=$(srcdir) >>Makefile
	echo VPATH=$(VPATH) >>Makefile
	cat $(MAKEFILEPARTS) /dev/null >>Makefile

FORCE:

.NOEXPORT:
@


1.5
log
@Merge groff-1.19.2.
@
text
@@


1.4
log
@Merge groff-1.19.1.
@
text
@d18 1
a18 1
# Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
d33 1
d96 1
a96 1
	-rm -f \#* *~ =* core junk grot old temp tmp tem
d102 1
a102 1
	$(COMPILE.cpp) $<
d105 1
a105 1
	$(COMPILE.c) $<
d108 1
a108 1
	$(COMPILE.cpp) $<
d111 1
a111 1
	$(COMPILE.c) $<
d136 1
a136 1
	$(COMPILE.cpp) $(YTABC)
d151 1
@


1.3
log
@Redo the linux cross-build fixes, from rev 1.24 of the master groff version:
    http://www.ffii.org/cgi-bin/viewcvs.cgi/groff/Makefile.comm
(The previous fixes still ended up with syntactically-invalid shell
code for the 'for' loops, which would fail on some versions of linux.
The ignore-error marking for the command would allow the build to finish,
but it would leave extraneous "Failed" bits in the build output.)
@
text
@a21 1
SHELL=/bin/sh
@


1.2
log
@fix cross-building from linux.  this is rev. 1.23 from groff CVS
(with the definition of SHELL added back).
@
text
@d1 1
a1 1
# Copyright (C) 1989-2000, 2002 Free Software Foundation, Inc.
d242 1
a242 1
	  || for f in $(DEVFILES); do \
d251 1
a251 1
	  || for f in $(DEVSCRIPTS); do \
d263 1
a263 1
	  || for f in $(DEVFILES) $(DEVSCRIPTS); do \
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
# Copyright (C) 1989-2000 Free Software Foundation, Inc.
d26 1
a26 1
COMPILE.cc=$(CCC) $(ALL_CCFLAGS) -c
d28 2
a29 2
COMPILE.c=$(CC) $(ALL_CFLAGS)  -c
LINK.cc=$(CCC) $(CCFLAGS) $(LDFLAGS)
d31 3
a33 3
LIBGROFF=$(top_builddir)/src/libs/libgroff/libgroff.a
LIBBIB=$(top_builddir)/src/libs/libbib/libbib.a
LIBDRIVER=$(top_builddir)/src/libs/libdriver/libdriver.a
d41 2
d74 9
d84 7
a90 2
clean:
	-rm -f $(CLEANFILES) $(MOSTLYCLEANFILES)
d92 2
a93 2
distclean:
	-rm -f $(DISTCLEANFILES) $(CLEANFILES) $(MOSTLYCLEANFILES)
d95 2
a96 7
realclean:
	-rm -f $(REALCLEANFILES) $(DISTCLEANFILES) $(CLEANFILES) \
	  $(MOSTLYCLEANFILES)

extraclean:
	-rm -f $(DISTCLEANFILES) $(CLEANFILES) $(MOSTLYCLEANFILES) \
	  \#* *~ =* core junk grot old temp tmp tem
d99 1
a99 1
.SUFFIXES: .o .cc .c .y .man .n
d101 2
a102 2
.cc.o:
	$(COMPILE.cc) $<
d107 7
a113 1
.y.cc:
d121 6
a126 2
	mv y_tab.c $@@
# Avoid ending up with two versions of $(YTABH).
d128 3
a130 6
	  if test -f $(srcdir)/$(YTABH); then \
	    rm -f $(YTABH); \
	    mv y_tab.h $(srcdir)/$(YTABH); \
	  else \
	    mv y_tab.h $(YTABH); \
	  fi; \
d132 5
a136 4

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`
d141 4
a144 2
	@@sed -e "s|@@FONTDIR@@|$(fontdir)|g" \
	-e "s|@@FONTPATH@@|$(fontpath)|g" \
d146 5
a150 1
	-e "s|@@MACROPATH@@|$(tmacpath)|g" \
d233 1
d238 2
a239 2
	  test -d $(fontsubdir)/generate || \
	    $(mkinstalldirs) $(fontsubdir)/generate; \
d241 18
a258 8
	-for f in $(DEVFILES); do \
	  rm -f $(fontsubdir)/$$f; \
	  if test -f $$f; then \
	    $(INSTALL_DATA) $$f $(fontsubdir)/$$f; \
	  else \
	    $(INSTALL_DATA) $(srcdir)/$$f $(fontsubdir)/$$f; \
	  fi; \
	done
d262 5
a266 4
	-for f in $(DEVFILES); do rm -f $(fontsubdir)/$$f; done
	-if test -d $(fontsubdir)/generate; then \
	  rmdir $(fontsubdir)/generate; \
	fi
d275 7
a281 2
	test -z "$(CCSRCS)$(YTABC)"  \
	  || $(CCC) $(ALL_CCFLAGS) -MM $(CCSRCS) $(YTABC) >>depend.temp
d284 3
a286 4
	if test -n "$(YTABH)"; then \
	  sed -e 's|$(YTABH)|$(YTABC)|g' depend.temp >depend1.temp; \
	  mv depend1.temp depend.temp; \
	fi
d294 1
@


1.1.1.1
log
@Initial import of groff-1.16.1 for reachover build.
Source modified by groff2netbsd (TBC) before import, otherwise unchanged.
@
text
@@


1.1.1.2
log
@Import groff-1.19. Changes since 1.16.1: too many to list here (> 1000 lines
in the abridged version). Please read the included NEWS file for details.
@
text
@d1 1
a1 1
# Copyright (C) 1989-2000, 2002 Free Software Foundation, Inc.
d26 1
a26 1
COMPILE.cpp=$(CCC) $(ALL_CCFLAGS) -c
d28 2
a29 2
COMPILE.c=$(CC) $(ALL_CFLAGS) -c
LINK.cpp=$(CCC) $(CCFLAGS) $(LDFLAGS)
d31 3
a33 3
LIBGROFF=$(top_builddir)/src/libs/libgroff/libgroff.$(LIBEXT)
LIBBIB=$(top_builddir)/src/libs/libbib/libbib.$(LIBEXT)
LIBDRIVER=$(top_builddir)/src/libs/libdriver/libdriver.$(LIBEXT)
a40 2
CLEANDIRADD=
CLEANNOTSRCDIRADD=
a71 9
	-rm -rf $(CLEANDIRADD)
	-@@if test `cd $(srcdir); pwd` = `pwd`; then \
	  :; \
	else \
	  rm -f $(CLEANNOTSRCDIRADD); \
	fi

clean: mostlyclean
	-rm -f $(CLEANFILES)
d73 2
a74 7
distclean: clean
	-rm -f $(DISTCLEANFILES)
	-@@if test `cd $(srcdir); pwd` = `pwd`; then \
	  :; \
	else \
	  rm -f $(YTABC) $(YTABH); \
	fi
d76 2
a77 2
realclean: distclean
	-rm -f $(REALCLEANFILES)
d79 7
a85 2
extraclean: distclean
	-rm -f \#* *~ =* core junk grot old temp tmp tem
d88 1
a88 1
.SUFFIXES: .o .obj .cpp .c .y .man .n
d90 2
a91 2
.cpp.o:
	$(COMPILE.cpp) $<
d96 1
a96 7
.cpp.obj:
	$(COMPILE.cpp) $<

.c.obj:
	$(COMPILE.c) $<

.y.cpp:
d104 2
a105 6
	mv y_tab.c $(YTABC)
	if test -n "$(YTABH)"; then mv y_tab.h $(YTABH); fi

# The next rule is needed for make of Solaris 2.5.1 to override its
# built-in .y.o rule (which takes precedence over the .y.cpp rule above).
.y.o:
d107 6
a112 3
	  $(YACC) $(YACCFLAGS) -d $<; \
	else \
	  $(YACC) $(YACCFLAGS) $<; \
d114 4
a117 5
	-test -f y.tab.h && mv y.tab.h y_tab.h
	-test -f y.tab.c && mv y.tab.c y_tab.c
	mv y_tab.c $(YTABC)
	if test -n "$(YTABH)"; then mv y_tab.h $(YTABH); fi
	$(COMPILE.cpp) $(YTABC)
d122 2
a123 4
	@@sed -e "s|@@BINDIR@@|$(bindir)|g" \
	-e "s|@@FONTDIR@@|$(fontdir)|g" \
	-e "s|@@LOCALFONTDIR@@|$(localfontdir)|g" \
	-e "s|@@LEGACYFONTDIR@@|$(legacyfontdir)|g" \
d125 1
a125 5
	-e "s|@@SYSTEMMACRODIR@@|$(systemtmacdir)|g" \
	-e "s|@@LOCALMACRODIR@@|$(localtmacdir)|g" \
	-e "s|@@DOCDIR@@|$(docdir)|g" \
	-e "s|@@EXAMPLEDIR@@|$(exampledir)|g" \
	-e "s|@@HTMLDOCDIR@@|$(htmldocdir)|g" \
a207 1
	-test -d $(dataprogramdir) || $(mkinstalldirs) $(dataprogramdir)
a222 8
	-for f in $(DEVSCRIPTS); do \
	  rm -f $(fontsubdir)/$$f; \
	  if test -f $$f; then \
	    $(INSTALL_SCRIPT) $$f $(fontsubdir)/$$f; \
	  else \
	    $(INSTALL_SCRIPT) $(srcdir)/$$f $(fontsubdir)/$$f; \
	  fi; \
	done
d226 1
a226 1
	-for f in $(DEVFILES) $(DEVSCRIPTS); do rm -f $(fontsubdir)/$$f; done
d238 2
a239 7
	if test -f "$(srcdir)/$(YTABC)"; then \
	  ytabc="$(srcdir)/$(YTABC)"; \
	else \
	  ytabc="$(YTABC)"; \
	fi; \
	test -z "$(CCSRCS)$(YTABC)" \
	  || $(CCC) $(ALL_CCFLAGS) -MM $(CCSRCS) $$ytabc >>depend.temp
a252 1
# This rule is only considered for the subdir_Makefile target.
@


1.1.1.3
log
@Import groff-1.19.1. Changes since 1.19:

Groff
-----

o The argument of the command line option `-I' is now also passed to troff
  and grops, specifying a directory to search for files on the command line,
  files named in `so' and `psbb' requests, and files named in \X'ps: file'
  and \X'ps: import' escapes.

o If option `-V' is used more than once, the commands will be both printed
  on standard error and run.

Troff
-----

o Two new read-only, string-valued registers `.m' and `.M' return the
  name of the current drawing and background color, respectively.

o New read-only register `.U' which is set to 1 if in safer mode and set
  to 0 if in unsafe mode.

o An input encoding file for latin-5 (a.k.a. ISO 8859-9) has been added.
  Example use:

    groff -Tdvi -mlatin5 my_file > my_file.dvi

  Note that some output devices don't support all glyphs of this encoding.

o If the `return' request is called with an argument, it exits twice,
  namely the current macro and the macro one level higher.  This is
  used to define a wrapper macro for `return' in trace.tmac.

o For completeness, two new requests have been added: `dei1' and `ami1'.
  They are equivalent to `dei' and `ami', respectively, but the macros
  are executed with compatibility mode off (similar to `de1' and `am1').

o New command line option `-I' to specify a directory for files (both
  those on the command line and those named in `psbb' requests).  This is
  also handled by the groff wrapper program.

o Since version 1.19 you can say `.vs 0'.  Older versions emit a warning
  and convert this to `.vs \n[.V]'.

  This hasn't been documented properly.  Note that `.vs 0' isn't saved in a
  diversion since it doesn't result in vertical motion.

Pic
___

o Dashed and dotted ellipses have been implemented.

Tbl
---

o New key character `x' to make tbl call a user-defined macro on a table
  cell.  Patch by Heinz-Jürgen Oertel <hj.oertel@@surfeu.de>.

Grohtml
-------

o New option `-j' to emit output splitted into multiple files.

Grops
-----

o New command line option `-I' to specify a directory to search for files
  on the command line and files named in \X'ps: import' and \X'ps: file'
  escapes.  This is also handled by the groff wrapper program.

o The default value for the `broken' keyword in the DESC file is now 0.

Grolj4
------

o A new man page `lj4_font(5)' documents how fonts are accessed with
  grolj4.

o The built-in fonts for LJ4 and newer PCL 5 devices have been completely
  revised, mainly to access as much glyphs as possible.  The provided
  metric files should be compatible with recent PCL 5 printers also.
  Additionally, font description files have been added for the Arial and
  Times New Roman family, the MS symbol, and Wingdings fonts.

Hpftodit
--------

o Completely revised to handle HP TrueType metric files also.  See the
  hpftodit manual page for more details.

Macro Packages
--------------

o www.tmac: New macro `JOBNAME' to split output into multiple files.

o In mdoc, multiple calls to `.Lb' are now supported in the LIBRARY
  section.
@
text
@d1 1
a1 1
# Copyright (C) 1989-2000, 2002, 2003, 2004 Free Software Foundation, Inc.
d22 1
d122 1
a122 1
	test -z "$(YTABH)" || mv y_tab.h $(YTABH)
d135 1
a135 1
	test -z "$(YTABH)" || mv y_tab.h $(YTABH)
d238 2
a239 2
	  test -d $(fontsubdir)/generate \
	    || $(mkinstalldirs) $(fontsubdir)/generate; \
d241 16
a256 18
	-test -z "$(DEVFILES)" \
	  || for f in ""$(DEVFILES); do \
	       rm -f $(fontsubdir)/$$f; \
	       if test -f $$f; then \
		 $(INSTALL_DATA) $$f $(fontsubdir)/$$f; \
	       else \
		 $(INSTALL_DATA) $(srcdir)/$$f $(fontsubdir)/$$f; \
	       fi; \
	     done
	-test -z "$(DEVSCRIPTS)" \
	  || for f in ""$(DEVSCRIPTS); do \
	       rm -f $(fontsubdir)/$$f; \
	       if test -f $$f; then \
		 $(INSTALL_SCRIPT) $$f $(fontsubdir)/$$f; \
	       else \
		 $(INSTALL_SCRIPT) $(srcdir)/$$f $(fontsubdir)/$$f; \
	       fi; \
	     done
d260 4
a263 5
	-test -z "$(DEVFILES)$(DEVSCRIPTS)" \
	  || for f in ""$(DEVFILES) $(DEVSCRIPTS); do \
	       rm -f $(fontsubdir)/$$f; \
	     done
	-test -d $(fontsubdir)/generate && rmdir $(fontsubdir)/generate
d281 4
a284 3
	test -z "$(YTABH)" \
	  || (sed -e 's|$(YTABH)|$(YTABC)|g' depend.temp >depend1.temp; \
	      mv depend1.temp depend.temp)
@


1.1.1.4
log
@Import groff 1.19.2
@
text
@d18 1
a18 1
# Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
a32 1
LIBXUTIL=$(top_builddir)/src/libs/libxutil/libxutil.$(LIBEXT)
d95 1
a95 1
	-rm -f \#* *~ =* core junk grot old temp tmp tem *.new *.old *.orig
d101 1
a101 1
	$(COMPILE.cpp) $(EXTRA_CCFLAGS) $<
d104 1
a104 1
	$(COMPILE.c) $(EXTRA_CFLAGS) $<
d107 1
a107 1
	$(COMPILE.cpp) $(EXTRA_CCFLAGS) $<
d110 1
a110 1
	$(COMPILE.c) $(EXTRA_CFLAGS) $<
d135 1
a135 1
	$(COMPILE.cpp) $(EXTRA_CCFLAGS) $(YTABC)
a149 1
	-e "s|@@PDFDOCDIR@@|$(pdfdocdir)|g" \
@


