Docs Updates: Exchange rate EUR -> DEM

Niklaus Giger ngiger@mus.ch
Mon, 7 Aug 2000 20:34:00 +0200


>   e) [I'll need help on this one]  Integrating this into the
>   existing Makefile.in in a coherent way.

Here are some snippets from Makefile.in and Makefile.am (taken from 
dejagnu-1.3.9).

## Process this file with automake to generate Makefile.in

# AUTOMAKE_OPTIONS =

DOCBOOK = @DOCBOOK@
TARGETS = overview.html overview.rtf # overview.dvi overview.ps

docs: $(TARGETS)

%.ps: %.dvi
        dvips -o $@ $<

%.pdf: %.sgml
        $(DOCBOOK)/db2pdf $<

%.dvi: %.sgml
        $(DOCBOOK)/db2dvi $<

%.rtf: %.sgml
        $(DOCBOOK)/db2rtf -o $@ $<

%.gif: %.fig
        convert -transparency white $< $@ # .fig -> .gif

%.epsi: %.eps
        ps2epsi $<                                     # .eps -> .epsi

%.eps: %.fig
        fig2dev -L ps -m 0.7 -p dummy $< > $@          # .fig -> .eps/portrait
 
%.html: %.sgml
        $(DOCBOOK)/db2html $<
 
# now for some extra dependencies that the automatic rules will not
# catch:
 
html rtf overview.pdf overview.ps overview.dvi overview.rtf overview.html: 
over
iew.sgml ref.sgml user.sgml
 
clean:
        rm -f $(TARGETS)
 
install-doc: $(TARGETS)
        $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/html
        $(INSTALL_DATA) overview/*.html $(DESTDIR)$(pkgdatadir)/html
#       $(INSTALL_DATA) overview.ps $(DESTDIR)$(pkgdatadir)/dejagnu.ps
#       $(INSTALL_DATA) overview.pdf $(DESTDIR)$(pkgdatadir)/dejagnu.pdf 

And the Makefile.in looks like this:

# Makefile.in generated automatically by automake 1.3 from Makefile.am

# Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.

# AUTOMAKE_OPTIONS =


SHELL = /bin/sh

srcdir = @srcdir@
top_srcdir = @top_srcdir@
VPATH = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@

bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
infodir = @infodir@
mandir = @mandir@
includedir = @includedir@
oldincludedir = /usr/include

DISTDIR =

pkgdatadir = $(datadir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@

top_builddir = ..

ACLOCAL = @ACLOCAL@
AUTOCONF = @AUTOCONF@
AUTOMAKE = @AUTOMAKE@
AUTOHEADER = @AUTOHEADER@

INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
transform = @program_transform_name@

NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
CC = @CC@
EXEEXT = @EXEEXT@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
PACKAGE = @PACKAGE@
VERSION = @VERSION@

DOCBOOK = @DOCBOOK@
TARGETS = overview.html overview.rtf # overview.dvi overview.ps
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_CLEAN_FILES =
DIST_COMMON =  README Makefile.am Makefile.in configure configure.in


DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)

TAR = tar
GZIP = --best
all: Makefile

.SUFFIXES:
$(srcdir)/Makefile.in: @MAINT@ Makefile.am $(top_srcdir)/configure.in 
$(ACLOCAL_M4)
        cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile

Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status 
$(BUILT_SOURCES)
        cd $(top_builddir) \
          && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) 
./config.status

tags: TAGS
TAGS:


distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)

subdir = doc

distdir: $(DISTFILES)
        here=`cd $(top_builddir) && pwd`; \
        top_distdir=`cd $(top_distdir) && pwd`; \
        distdir=`cd $(distdir) && pwd`; \
        cd $(top_srcdir) \
          && $(AUTOMAKE) --include-deps --build-dir=$$here 
--srcdir-name=$(top_srcdir) --o
utput-dir=$$top_distdir --gnu doc/Makefile
        @for file in $(DISTFILES); do \
          d=$(srcdir); \
          test -f $(distdir)/$$file \
          || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
          || cp -p $$d/$$file $(distdir)/$$file; \
        done
info:
dvi:
check: all
        $(MAKE)
installcheck:
install-exec:
        @$(NORMAL_INSTALL)

install-data:
        @$(NORMAL_INSTALL)

install: install-exec install-data all
        @:

uninstall:

install-strip:
        $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' 
INSTALL_SCRIPT='$(INSTALL_PROGRAM)
' install
installdirs:


mostlyclean-generic:
        -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)

clean-generic:
        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)

distclean-generic:
        -rm -f Makefile $(DISTCLEANFILES)
        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
        -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)

maintainer-clean-generic:
        -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
        -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
mostlyclean:  mostlyclean-generic

clean:  clean-generic mostlyclean

distclean:  distclean-generic clean
        -rm -f config.status

maintainer-clean:  maintainer-clean-generic distclean
        @echo "This command is intended for maintainers to use;"
        @echo "it deletes files that may require special tools to rebuild."

.PHONY: tags distdir info dvi installcheck install-exec install-data \
install uninstall all installdirs mostlyclean-generic distclean-generic \
clean-generic maintainer-clean-generic clean mostlyclean distclean \
maintainer-clean


docs: $(TARGETS)

%.ps: %.dvi
        dvips -o $@ $<
        $(DOCBOOK)/db2pdf $<
 
%.dvi: %.sgml
        $(DOCBOOK)/db2dvi $<
 
%.rtf: %.sgml
        $(DOCBOOK)/db2rtf -o $@ $<
 
%.gif: %.fig
        convert -transparency white $< $@ # .fig -> .gif
 
%.epsi: %.eps
        ps2epsi $<                                     # .eps -> .epsi
 
%.eps: %.fig
        fig2dev -L ps -m 0.7 -p dummy $< > $@          # .fig -> .eps/portrait
 
%.html: %.sgml
        $(DOCBOOK)/db2html $<
 
# now for some extra dependencies that the automatic rules will not
# catch:
 
html rtf overview.pdf overview.ps overview.dvi overview.rtf overview.html: 
overview.sgml ref.sgml user.sgml
 
clean:
        rm -f $(TARGETS)
 
install-doc: $(TARGETS)
        $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/html
        $(INSTALL_DATA) overview/*.html $(DESTDIR)$(pkgdatadir)/html
#       $(INSTALL_DATA) overview.ps $(DESTDIR)$(pkgdatadir)/dejagnu.ps
#       $(INSTALL_DATA) overview.pdf $(DESTDIR)$(pkgdatadir)/dejagnu.pdf
 
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT: 

I hope they are useful for you.
-- 
Niklaus Giger
Wieshoschet 6
CH-8753 Mollis
ngiger@mus.ch  Tel. + 41 55 618 64 68, Private + 41 55 612 20 54