diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2012-04-08 23:09:51 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2012-04-08 23:09:51 +0200 |
commit | 7816d853b797ec8eebdbf177a1a4df383d0d9bfd (patch) | |
tree | 1d3297be9332c8250b5d286bbb55cbe76740e4ff /Makefile | |
parent | be3b9345f2c7c04fd91aab7fad72e0024e364218 (diff) |
Rules for build system targets.
* Makefile (configure, config.status, config.make): New targets.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 32 |
1 files changed, 25 insertions, 7 deletions
@@ -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 $@ |