diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-19 21:33:15 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2008-07-19 21:33:15 +0200 |
commit | 12edde3166fc4846160f3186ba6171796de151b8 (patch) | |
tree | e4978a253a31d2a9e0fd4062e48a7870deede67e /GNUmakefile.in | |
parent | 100850889f58225f62fbf30c8ef0ce887d07dfae (diff) | |
download | ndim-git-utils-12edde3166fc4846160f3186ba6171796de151b8.tar.gz ndim-git-utils-12edde3166fc4846160f3186ba6171796de151b8.tar.xz ndim-git-utils-12edde3166fc4846160f3186ba6171796de151b8.zip |
Automatically call autoreconf for GNU make usersv1.20
Diffstat (limited to 'GNUmakefile.in')
-rw-r--r-- | GNUmakefile.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/GNUmakefile.in b/GNUmakefile.in new file mode 100644 index 0000000..9640280 --- /dev/null +++ b/GNUmakefile.in @@ -0,0 +1,15 @@ +include Makefile + +AUTORECONF ?= autoreconf +AUTORECONF_OPTS ?= -vis + +git_version := $(shell $(top_srcdir)/build-helpers/package-version $(top_srcdir) version-stamp) +ifneq ($(PACKAGE_VERSION),$(git_version)) +$(info autoconf and git versions do not match: $(PACKAGE_VERSION) vs $(git_version)) +$(info Removing autom4te.cache and related files and re-running autoreconf) +dummy1 := $(shell rm -rf $(top_srcdir)/autom4te.cache) +dummy2 := $(shell rm -f $(top_srcdir)/test/package.m4 $(top_srcdir)/test/testsuite) +dummy3 := $(shell $(AUTORECONF) $(AUTORECONF_OPTS) $(top_srcdir)) +endif + +# vim: syntax=make |