head	1.2;
access;
symbols
	netbsd-11-0-RC4:1.2
	netbsd-11-0-RC3:1.2
	netbsd-11-0-RC2:1.2
	netbsd-11-0-RC1:1.2
	perseant-exfatfs-base-20250801:1.2
	netbsd-11:1.2.0.30
	netbsd-11-base:1.2
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.28
	perseant-exfatfs-base:1.2
	netbsd-8-3-RELEASE:1.2
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.26
	netbsd-10-base:1.2
	netbsd-9-3-RELEASE:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.24
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.2.0.22
	cjep_staticlib_x-base:1.2
	netbsd-9-1-RELEASE:1.2
	phil-wifi-20200421:1.2
	phil-wifi-20200411:1.2
	is-mlppp:1.2.0.20
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	netbsd-8-2-RELEASE:1.2
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.18
	netbsd-9-base:1.2
	phil-wifi-20190609:1.2
	netbsd-8-1-RELEASE:1.2
	netbsd-8-1-RC1:1.2
	pgoyette-compat-merge-20190127:1.2
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.2
	phil-wifi:1.2.0.16
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.2
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	netbsd-8-0-RC1:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	pgoyette-compat:1.2.0.14
	pgoyette-compat-base:1.2
	matt-nb8-mediatek:1.2.0.12
	matt-nb8-mediatek-base:1.2
	perseant-stdc-iso10646:1.2.0.10
	perseant-stdc-iso10646-base:1.2
	netbsd-8:1.2.0.8
	netbsd-8-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.6
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	bouyer-socketcan:1.2.0.4
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	pgoyette-localcount-20161104:1.2
	localcount-20160914:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.2
	pgoyette-localcount-base:1.2
	groff-1-19-2:1.1.1.1
	FSF:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2016.01.13.19.01.58;	author christos;	state Exp;
branches;
next	1.1;
commitid	lFxGBGcE2Im4TNQy;

1.1
date	2016.01.13.18.41.46;	author christos;	state Exp;
branches
	1.1.1.1;
next	;
commitid	3IfWnJaO3ZAcMNQy;

1.1.1.1
date	2016.01.13.18.41.46;	author christos;	state Exp;
branches;
next	;
commitid	3IfWnJaO3ZAcMNQy;


desc
@@


1.2
log
@merge our changes and add build glue
@
text
@# Copyright (C) 2005, Free Software Foundation, Inc.
#      Written by Keith Marshall (keith.d.marshall@@ntlworld.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.

MAN1=\
  pdfroff.n

CMDFILES=\
  pdfroff

TMACFILES=\
  pdfmark.tmac \
  spdf.tmac

PDFDOCFILES=\
  pdfmark.pdf

CLEANADD=\
  gnu.eps \
  $(PDFDOCFILES) \
  $(CMDFILES)

# Some `makes' don't predefine RM...
RM=rm -f

GROFF_BIN_DIR=$(top_builddir)/src/roff/groff
GROFF_OTHER_BIN_DIRS=\
  $(top_builddir)/src/roff/troff \
  $(top_builddir)/src/devices/grops
GROFF_BIN_DIRS=$(GROFF_BIN_DIR) $(GROFF_OTHER_BIN_DIRS)
GROFF_BIN_PATH=`echo $(GROFF_BIN_DIRS) | sed -e 's|  *|$(SH_SEP)|g'`

FFLAG=-F$(top_builddir)/font -F$(top_srcdir)/font
MFLAG=-M$(srcdir) -M$(top_builddir)/tmac -M$(top_srcdir)/tmac
PFLAG=-dpaper=$(PAGE) -P-p$(PAGE)

PDFROFF=\
  export GROFF_COMMAND_PREFIX; GROFF_COMMAND_PREFIX=''; \
  export GROFF_BIN_DIR; GROFF_BIN_DIR=$(GROFF_BIN_DIR); \
  export GROFF_BIN_PATH; GROFF_BIN_PATH=$(GROFF_BIN_PATH); \
  ./pdfroff $(FFLAG) $(MFLAG) $(PFLAG)

.SUFFIXES: .ms .pdf
.ms.pdf:
	$(RM) $@@
	$(PDFROFF) -mspdf --stylesheet=$(srcdir)/cover.ms $< >$@@

all: pdfroff $(make_pdfdoc)

$(PDFDOCFILES): pdfroff

pdfdoc: gnu.eps $(PDFDOCFILES)

gnu.eps:
	if test -f $(top_srcdir)/doc/gnu.eps; then \
	  cp $(top_srcdir)/doc/gnu.eps . ; \
	elif test -f $(top_builddir)/doc/gnu.eps; then \
	  cp $(top_builddir)/doc/gnu.eps . ; \
	else \
	  xpmtoppm $(top_srcdir)/doc/gnu.xpm | pnmdepth 15 | \
	    $(pnmtops_nosetpage) -noturn -rle >$@@ ; \
	fi

pdfroff: pdfroff.sh $(SH_DEPS_SED_SCRIPT)
	$(RM) $@@
	sed -f $(SH_DEPS_SED_SCRIPT) \
	    -e "s|@@VERSION@@|$(version)$(revision)|" \
	    -e "s|@@GROFF_AWK_INTERPRETERS@@|$(ALT_AWK_PROGS)|" \
	    -e "s|@@GROFF_GHOSTSCRIPT_INTERPRETERS@@|$(ALT_GHOSTSCRIPT_PROGS)|" \
	    -e "s|@@GROFF_BIN_DIR@@|$(bindir)|" $(srcdir)/pdfroff.sh >$@@
	chmod +x $@@

install_data: $(make_install_pdfdoc)
	-test -d $(bindir) || $(mkinstalldirs) $(bindir)
	for f in $(CMDFILES); do \
	  $(RM) $(bindir)/$$f; \
	  $(INSTALL_SCRIPT) $$f $(bindir)/$$f; \
	done
	-test -d $(tmacdir) || $(mkinstalldirs) $(tmacdir)
	for f in $(TMACFILES); do \
	  $(RM) $(tmacdir)/$$f; \
	  $(INSTALL_DATA) $(srcdir)/$$f $(tmacdir)/$$f; \
	done

install_pdfdoc:
	-test -d $(pdfdocdir) || $(mkinstalldirs) $(pdfdocdir)
	for f in $(PDFDOCFILES); do \
	  $(RM) $(pdfdocdir)/$$f; \
	  $(INSTALL_DATA) $$f $(pdfdocdir)/$$f; \
	done

uninstall_sub:
	for f in $(CMDFILES); do \
	  $(RM) $(bindir)/$$f; \
	done
	for f in $(TMACFILES); do \
	  $(RM) $(tmacdir)/$$f; \
	done
	for f in $(PDFDOCFILES); do \
	  $(RM) $(pdfdocdir)/$$f; \
	done
@


1.1
log
@Initial revision
@
text
@d65 2
@


1.1.1.1
log
@Import groff 1.19.2
@
text
@@
