Ensure .version and .tarbal-version are generated

May fix issue #91.
This commit is contained in:
Alexandru Csete 2017-12-12 01:08:35 +01:00
parent 9239aeee00
commit 2ac8ac3f35
2 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
.version
Makefile
Makefile.in
build-config.h

View file

@ -1,6 +1,12 @@
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = src doc pixmaps data po
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
install-data-local:
@$(NORMAL_INSTALL)
$(INSTALL_DATA) $(top_srcdir)/AUTHORS $(DESTDIR)$(pkgdatadir)