diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2008-11-26 05:42:48 -0500 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2008-11-26 05:42:48 -0500 |
commit | 9bcfa9cdede27be34d11f42dfae3d8fd60fc92bc (patch) | |
tree | 77f11fd6fb26c9ac4d8a410983629927c70d5319 /plugins-root/Makefile.am | |
parent | ed9a088b37dcb8ba56d397592f4e8230a6a011e5 (diff) | |
download | monitoring-plugins-9bcfa9cdede27be34d11f42dfae3d8fd60fc92bc.tar.gz |
Disable dynamic versionning for releases, and allow generating version out of subversion.
This should be a definitive fix for systems with non-compilant make programs as the version will be taken from $(PACKAGE_VERSION) instead.
At the same time I added code for generating svn-based version strings.
Diffstat (limited to 'plugins-root/Makefile.am')
-rw-r--r-- | plugins-root/Makefile.am | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins-root/Makefile.am b/plugins-root/Makefile.am index ba2e9a27..3fb62a24 100644 --- a/plugins-root/Makefile.am +++ b/plugins-root/Makefile.am @@ -1,13 +1,13 @@ ## Process this file with automake to produce Makefile.in +if RELEASE_PRESENT +NP_VERSION = $(PACKAGE_VERSION) +else NP-VERSION-FILE: .FORCE-NP-VERSION-FILE @$(SHELL_PATH) $(top_srcdir)/NP-VERSION-GEN .FORCE-NP-VERSION-FILE: - -## This is undocumented and could possibly break in future versions of -## automake. See: -## http://article.gmane.org/gmane.comp.sysutils.automake.general/10036 -@am__include@ @am__quote@NP-VERSION-FILE@am__quote@ +-include NP-VERSION-FILE +endif AM_CFLAGS = -DNP_VERSION='"$(NP_VERSION)"' |