Skip to content

Commit

Permalink
Ensure .version and .tarbal-version are generated
Browse files Browse the repository at this point in the history
May fix issue csete#91.
  • Loading branch information
csete committed Dec 12, 2017
1 parent 9239aee commit 2ac8ac3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.version
Makefile
Makefile.in
build-config.h
Expand Down
6 changes: 6 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 2ac8ac3

Please sign in to comment.