From 6a79974139b3b8238b286a89276be90369db2b47 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 17 Jun 1999 19:27:05 +0000 Subject: 1999-06-17 Roland McGrath * Makefile (%.info rule): Put output in build dir, not srcdir. Pass -I options to makeinfo for both dirs. (move-if-change): New variable. (version.texi, stamp-version): New targets, update version.texi (in build dir) from `$(hurd-version)' as set in Makeconf. --- doc/Makefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'doc') diff --git a/doc/Makefile b/doc/Makefile index dc752905..27c48a30 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -27,7 +27,7 @@ DVIPS = dvips include ../Makeconf # For each .info file we need a .d file. --include $(subst .info,.d,$(filter %.info,$(targets))) /dev/null +-include $(patsubst %.info,%.d,$(filter %.info,$(targets))) /dev/null # Build dependencies from included files. %.d: %.texi @@ -37,8 +37,8 @@ include ../Makeconf mv -f $@.new $@ %.info: %.texi - @cd $(srcdir) && rm -f $@ $@-[0-9] $@-[0-9][0-9] - cd $(srcdir) && $(MAKEINFO) $(notdir $<) + @rm -f $@ $@-[0-9] $@-[0-9][0-9] + $(MAKEINFO) -I $(@D) -I $( $@.new - mv -f $@.new $@ +move-if-change = $(SHELL) $(top_srcdir)/move-if-change + +version.texi: stamp-version; @: +stamp-version: $(top_srcdir)/Makeconf + echo '@set VERSION $(hurd-version)' > version.texi.new + $(move-if-change) version.texi.new version.texi + touch $@ all: $(targets) -- cgit v1.2.3