SummaryRefsLogTreeCommitDiffStats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2016-12-28 23:06:03 +0100
committerMathieu Lirzin <mthl@gnu.org>2016-12-28 23:06:03 +0100
commita3051133c0370abcbff266441e177ce81920457a (patch)
treea7257541bf079d6572d403151b1e7bc4aeba3798 /Makefile.am
parent5e6233a58dab5b22cadffdfd16505a440808a659 (diff)
downloadmcron-a3051133c0370abcbff266441e177ce81920457a.tar.gz
mcron-a3051133c0370abcbff266441e177ce81920457a.tar.bz2
mcron-a3051133c0370abcbff266441e177ce81920457a.zip
maint: Generate version number.
* build-aux/git-version-gen: New script. * configure.ac (AC_INIT): Use it. (AC_REQUIRE_AUX_FILE): Distribute it. * Makefile.am (.version): New target. (BUILT_SOURCES, EXTRA_DIST): Add it. (dist-hook): Generate ".tarball-version". * .gitignore: Update.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 109e27a..a1d6be4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -97,7 +97,12 @@ TESTS = \
SUFFIXES = .go
noinst_SCRIPTS = pre-inst-env
+BUILT_SOURCES= .version
+.version:
+ $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
+
dist-hook: gen-ChangeLog
+ $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
gen_start_date = 2015-06-26
.PHONY: gen-ChangeLog
@@ -137,7 +142,10 @@ uninstall-hook:
rm -f $(fpp){cron,crontab}$(EXEEXT); \
fi
-EXTRA_DIST = $(TESTS)
+EXTRA_DIST = \
+ .version \
+ $(TESTS)
+
MAINTAINERCLEANFILES = $(dist_man_MANS)
DISTCLEANFILES = src/config.scm
CLEANFILES = \