Blame doc/Makefile.am

Packit 575503
#
Packit 575503
# doc/Makefile.am --- automake input file for gawk
Packit 575503
#
Packit 575503
# Copyright (C) 2000, 2001, 2002, 2004, 2005, 2007, 2010, 2011, 2016, 2017
Packit 575503
# the Free Software Foundation, Inc.
Packit 575503
#
Packit 575503
# This file is part of GAWK, the GNU implementation of the
Packit 575503
# AWK Programming Language.
Packit 575503
#
Packit 575503
# GAWK is free software; you can redistribute it and/or modify
Packit 575503
# it under the terms of the GNU General Public License as published by
Packit 575503
# the Free Software Foundation; either version 3 of the License, or
Packit 575503
# (at your option) any later version.
Packit 575503
#
Packit 575503
# GAWK is distributed in the hope that it will be useful,
Packit 575503
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 575503
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 575503
# GNU General Public License for more details.
Packit 575503
#
Packit 575503
# You should have received a copy of the GNU General Public License
Packit 575503
# along with this program; if not, write to the Free Software
Packit 575503
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
Packit 575503
#
Packit 575503
Packit 575503
## process this file with automake to produce Makefile.in
Packit 575503
Packit 575503
info_TEXINFOS = gawk.texi gawkinet.texi gawkworkflow.texi
Packit 575503
Packit 575503
man_MANS = gawk.1
Packit 575503
Packit 575503
EXTRA_DIST = ChangeLog ChangeLog.0 README.card ad.block setter.outline \
Packit 575503
	awkcard.in awkforai.txt texinfo.tex cardfonts \
Packit 575503
	api-figure1.eps api-figure1.fig api-figure1.pdf \
Packit 575503
	api-figure1.png api-figure1.txt \
Packit 575503
	api-figure2.eps api-figure2.fig api-figure2.pdf \
Packit 575503
	api-figure2.png api-figure2.txt \
Packit 575503
	api-figure3.eps api-figure3.fig api-figure3.pdf \
Packit 575503
	api-figure3.png api-figure3.txt \
Packit 575503
	array-elements.eps array-elements.fig array-elements.pdf \
Packit 575503
	array-elements.png array-elements.txt \
Packit 575503
	gawktexi.in sidebar.awk \
Packit 575503
	general-program.eps general-program.fig general-program.pdf \
Packit 575503
	general-program.png general-program.txt \
Packit 575503
	it \
Packit 575503
	process-flow.eps process-flow.fig process-flow.pdf \
Packit 575503
	process-flow.png process-flow.txt \
Packit 575503
	macros colors no.colors $(man_MANS) \
Packit 575503
	lflashlight-small.xpic lflashlight.eps lflashlight.pdf \
Packit 575503
	rflashlight-small.xpic rflashlight.eps rflashlight.pdf \
Packit 575503
	statist.jpg statist.eps statist.pdf \
Packit 575503
	wordlist wordlist2 \
Packit 575503
	bc_notes
Packit 575503
Packit 575503
# Get rid of generated files when cleaning
Packit 575503
CLEANFILES = *.ps *.html *.dvi *~ awkcard.nc awkcard.tr gawk.pdf gawkinet.pdf gawkworkflow.pdf awkcard.pdf gawk.1.pdf
Packit 575503
Packit 575503
MAKEINFO = @MAKEINFO@ --no-split --force
Packit 575503
Packit 575503
TROFF = groff -t -Tps -U
Packit 575503
SEDME = sed -e "s/^level0 restore/level0 restore flashme 100 72 moveto (Copyright `date '+%m-%d-%y %T'`, FSF, Inc. (all)) show/" \
Packit 575503
		-e "s/^\/level0 save def/\/level0 save def 30 -48 translate/"
Packit 575503
SEDME2 = sed '/%%Page: 10 10/,/0 Cg EP/d'
Packit 575503
Packit 575503
CARDSRC = $(srcdir)/macros $(srcdir)/cardfonts $(srcdir)/colors awkcard.tr
Packit 575503
CARDSRC_N = $(srcdir)/macros $(srcdir)/cardfonts $(srcdir)/no.colors awkcard.tr
Packit 575503
CARDFILES= $(CARDSRC) ad.block awkcard.in setter.outline
Packit 575503
PAPEROPTS= -dpaper=letter -P-pletter
Packit 575503
Packit 575503
# Use this if your troff can correctly handle macros from 'colors' file
Packit 575503
AWKCARD = awkcard.ps
Packit 575503
Packit 575503
# Uncomment the following definition of AWKCARD if your troff can produce
Packit 575503
# Postscript but still has troubles with macros from 'colors'.  As this
Packit 575503
# is not groff you will have to change TROFF macro as well.  Do not forget
Packit 575503
# to ensure that awkcard.tr is processed by tbl.
Packit 575503
#AWKCARD = awkcard.nc
Packit 575503
Packit 575503
gawk.texi: $(srcdir)/gawktexi.in $(srcdir)/sidebar.awk
Packit 575503
	awk -f $(srcdir)/sidebar.awk < $(srcdir)/gawktexi.in > gawk.texi
Packit 575503
Packit 575503
postscript: gawk.ps gawkinet.ps gawkworkflow.ps gawk.1.ps $(AWKCARD)
Packit 575503
Packit 575503
pdf-local: postscript gawk.pdf gawkinet.pdf awkcard.pdf gawk.1.pdf
Packit 575503
Packit 575503
gawk.ps: gawk.dvi
Packit 575503
	TEXINPUTS=$(srcdir): dvips -o gawk.ps gawk.dvi
Packit 575503
Packit 575503
gawkinet.ps: gawkinet.dvi
Packit 575503
	TEXINPUTS=$(srcdir): dvips -o gawkinet.ps gawkinet.dvi
Packit 575503
Packit 575503
gawkworkflow.ps: gawkworkflow.dvi
Packit 575503
	TEXINPUTS=$(srcdir): dvips -o gawkworkflow.ps gawkworkflow.dvi
Packit 575503
Packit 575503
gawk.1.ps: gawk.1
Packit 575503
	-groff -man $(srcdir)/gawk.1 > gawk.1.ps
Packit 575503
Packit 575503
gawk.1.pdf: gawk.1.ps
Packit 575503
	ps2pdf gawk.1.ps gawk.1.pdf
Packit 575503
Packit 575503
awkcard.tr: awkcard.in
Packit 575503
	sed 's:SRCDIR:$(srcdir):' < $(srcdir)/awkcard.in > awkcard.tr
Packit 575503
Packit 575503
awkcard.ps: $(CARDFILES)
Packit 575503
	$(TROFF) $(PAPEROPTS) $(CARDSRC) | $(SEDME) | cat $(srcdir)/setter.outline - | $(SEDME2) > awkcard.ps
Packit 575503
Packit 575503
awkcard.nc: $(CARDFILES)
Packit 575503
	$(TROFF) $(PAPEROPTS) $(CARDSRC_N) | $(SEDME) | cat $(srcdir)/setter.outline - | $(SEDME2) > awkcard.ps && touch awkcard.nc
Packit 575503
Packit 575503
awkcard.pdf: awkcard.ps
Packit 575503
	ps2pdf awkcard.ps awkcard.pdf
Packit 575503
Packit 575503
spell: spellmanual spellworkflow
Packit 575503
Packit 575503
spellmanual:
Packit 575503
	@echo ==== gawktexi.in ====;
Packit 575503
	export LC_ALL=C ; spell "$(srcdir)"/gawktexi.in | \
Packit 575503
	sort -u | comm -23 - "$(srcdir)"/wordlist
Packit 575503
Packit 575503
spellworkflow:
Packit 575503
	@echo ==== gawkworkflow.texi ====
Packit 575503
	export LC_ALL=C ; spell "$(srcdir)"/gawkworkflow.texi | \
Packit 575503
	sort -u | comm -23 - "$(srcdir)"/wordlist2