From a3051133c0370abcbff266441e177ce81920457a Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Wed, 28 Dec 2016 23:06:03 +0100 Subject: 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. --- Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile.am') 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 = \ -- cgit v1.2.3