From 7816d853b797ec8eebdbf177a1a4df383d0d9bfd Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sun, 8 Apr 2012 23:09:51 +0200 Subject: Rules for build system targets. * Makefile (configure, config.status, config.make): New targets. --- Makefile | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8df266f2..b56ed21b 100644 --- a/Makefile +++ b/Makefile @@ -64,13 +64,6 @@ working-prog-subdirs := $(filter-out \ $(subdirs): version.h - -version.h: stamp-version; @: -stamp-version: version.h.in config.make - sed -e 's/MASTER_HURD_VERSION/\"$(hurd-version)\"/' \ - < $< > version.h.new - $(move-if-change) version.h.new version.h - touch $@ ## GNU Coding Standards targets (not all are here yet), and some other ## similar sorts of things @@ -164,3 +157,28 @@ endif # How to build them $(addsuffix .d,$(subdirs)): %.d: $(top_srcdir)/%/Makefile $(MAKE) -C $* directory-depend no_deps=t + + +## Build system + +AUTOCONF = autoconf +AUTOCONF_FLAGS = -I $(top_srcdir) + +$(top_srcdir)/configure: $(top_srcdir)/configure.in $(top_srcdir)/aclocal.m4 + $(AUTOCONF) $(AUTOCONF_FLAGS) $< > $@ + chmod +x $@ + +config.status: $(top_srcdir)/configure + $(SHELL) $@ --recheck + +config.make: config.status $(top_srcdir)/config.make.in +# No stamp file is used here, as config.make's timestamp changing will not have +# any far-reaching consequences. + $(SHELL) $< --file=$@ + +version.h: stamp-version; @: +stamp-version: version.h.in config.make + sed -e 's/MASTER_HURD_VERSION/\"$(hurd-version)\"/' \ + < $< > version.h.new + $(move-if-change) version.h.new version.h + touch $@ -- cgit v1.2.3