Code

Disable dynamic versionning for releases, and allow generating version out of subversion.
[nagiosplug.git] / Makefile.am
index 0452133ffc3e67625f889d0829e74a3e153336e4..70325781e3c1ba77fee9a13a6b10bc7ed66459f7 100644 (file)
@@ -5,7 +5,7 @@ SUBDIRS = gl @INCLUDE_TAP_DIR@ lib plugins plugins-scripts plugins-root po @PERL
 # Have to list TAP_DIR manually to get in distribution
 EXTRA_DIST = config.rpath \
        ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS BUGS CODING FAQ LEGAL NEWS \
-       REQUIREMENTS SUPPORT THANKS \
+       NP-VERSION-GEN REQUIREMENTS SUPPORT THANKS \
        NPTest.pm contrib pkg nagios-plugins.spec \
        config_test/Makefile config_test/run_tests config_test/child_test.c \
        perlmods tools/build_perl_modules \
@@ -19,7 +19,7 @@ DEFS = -DLOCALEDIR=\"$(localedir)\"
 
 dist-hook:
        make THANKS nagios-plugins.spec pkg/fedora/nagios-plugins.spec
-       rm -rf `find $(distdir) -name .svn`
+       echo ${VERSION} >$(distdir)/release
 
 install-root:
        cd plugins-root && $(MAKE) $@
@@ -62,3 +62,4 @@ THANKS: THANKS.in
 
 pkgclean:
        rm -rf $(BUILDDIR) $(PACKDIR)
+