Build: version from Git.
[strayman] / Makefile.m4
index f8442a9..2b08007 100644 (file)
@@ -23,8 +23,6 @@
 ## along with strayman; if not, write to the Free Software Foundation,
 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-AUTOMAKE_OPTIONS = foreign
-
 pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
 pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
 
@@ -67,6 +65,10 @@ EXTRA_DIST = $(SRC) $(AUX) $(DVI) $(OBJ) strayman.ins Makefile.m4
 MAINTAINERCLEANFILES = $(OBJ) $(DVI)
 CLEANFILES = *.tmp *.aux *.idx *.ilg *.log *.toc *.ind *.lot *.ans *.ps *.pdf
 
+dist-hook::
+       echo $(VERSION) >$(distdir)/RELEASE
+EXTRA_DIST += auto-version
+
 Makefile.am: Makefile.m4
        cd $(srcdir) && m4 Makefile.m4 >Makefile.am