From 5a265d3844e01b738fa9900a05bc3d747ddc297a Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Fri, 12 Mar 1999 17:12:26 +0000 Subject: 1998-06-02 Gordon Matzigkeit * Makefile: Add rules for building info, dvi and ps files. * hurd.texi: Change the basic structure, and add a lot more information. --- doc/Makefile | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'doc/Makefile') diff --git a/doc/Makefile b/doc/Makefile index 0a5c3517..65d2e5ad 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -1,4 +1,4 @@ -# +# # Copyright (C) 1994, 1998 Free Software Foundation # # This program is free software; you can redistribute it and/or @@ -18,6 +18,41 @@ dir := doc makemode := misc -DIST_FILES = hurd.texi navigating +DIST_FILES = navigating gpl.texinfo hurd.texi version.texi \ + hurd.info $(wildcard hurd.info*) +targets = hurd.info + +DVIPS = dvips include ../Makeconf + +# For each .info file we need a .d file. +-include $(subst .info,.d,$(filter %.info,$(targets))) /dev/null + +# Build dependencies from included files. +%.d: %.texi + set -e; (echo "$*.info $*.dvi: \\"; grep '^@include ' $< | \ + sed -e 's/^[^ ]*[ ]*\([^ ]*\).*$$/ \1 \\/'; \ + echo) > $@.new + mv -f $@.new $@ + +%.info: %.texi + @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] + cd $(srcdir) && $(MAKEINFO) $(notdir $<) + +.PRECIOUS: %.dvi +%.dvi: %.texi + TEXINPUTS=$(srcdir):$$TEXINPUTS \ + MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< + +%.ps: %.dvi + $(DVIPS) $< -o $@ + +# A header which contains the latest package version. +$(srcdir)/version.texi: $(top_srcdir)/version.h + set -e; (echo "@c version.texi - automatically generated from ../version.h"; \ + grep '^#define HURD_VERSION' $< | \ + sed 's/^[^"]*"\([^"]*\).*$$/@set VERSION \1/') > $@.new + mv -f $@.new $@ + +all: $(targets) -- cgit v1.2.3