summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2012-04-08 23:09:51 +0200
committerThomas Schwinge <thomas@codesourcery.com>2012-04-08 23:09:51 +0200
commit7816d853b797ec8eebdbf177a1a4df383d0d9bfd (patch)
tree1d3297be9332c8250b5d286bbb55cbe76740e4ff /Makefile
parentbe3b9345f2c7c04fd91aab7fad72e0024e364218 (diff)
Rules for build system targets.
* Makefile (configure, config.status, config.make): New targets.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 25 insertions, 7 deletions
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 $@