diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-03-12 17:12:26 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-03-12 17:12:26 +0000 |
commit | 5a265d3844e01b738fa9900a05bc3d747ddc297a (patch) | |
tree | c4592c30337a66b86d5bf6596b9c018952eda112 /doc/Makefile | |
parent | 0118670d78e521f63c78b3b7ec45fc58f8dd06d6 (diff) |
1998-06-02 Gordon Matzigkeit <gord@profitpress.com>
* Makefile: Add rules for building info, dvi and ps files.
* hurd.texi: Change the basic structure, and add a lot more
information.
Diffstat (limited to 'doc/Makefile')
-rw-r--r-- | doc/Makefile | 39 |
1 files changed, 37 insertions, 2 deletions
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) |