Build: get version from Git.
[mdwfonts] / Makefile.m4
index 1f1499b..e50b079 100644 (file)
 
 AUTOMAKE_OPTIONS = foreign
 
-texmfpath = @texmfpath@
-pkglatexdir = ${texmfpath}/tex/latex/${PACKAGE}
-pkgdocdir = ${texmfpath}/doc/latex/${PACKAGE}
-pkgtfmdir = ${texmfpath}/fonts/tfm/${PACKAGE}
-pkgvfdir = ${texmfpath}/fonts/vf/${PACKAGE}
-pkgetxdir = ${texmfpath}/tex/fontinst/${PACKAGE}
-pkmapdir = ${texmfpath}/dvips/${PACKAGE}
+pkglatexdir = ${texmfdir}/tex/latex/${PACKAGE}
+pkgdocdir = ${texmfdir}/doc/latex/${PACKAGE}
+pkgtfmdir = ${texmfdir}/fonts/tfm/${PACKAGE}
+pkgvfdir = ${texmfdir}/fonts/vf/${PACKAGE}
+pkgetxdir = ${texmfdir}/tex/fontinst/${PACKAGE}
+pkmapdir = ${texmfdir}/dvips/${PACKAGE}
 
 FONTINST = @FONTINST@
 
@@ -95,6 +94,10 @@ CLEANFILES = \
 Makefile.am: Makefile.m4
        cd $(srcdir) && m4 Makefile.m4 >Makefile.am
 
+dist-hook::
+       echo $(VERSION) >$(distdir)/RELEASE
+EXTRA_DIST += auto-version
+
 .PHONY: dvi
 
 ##----- That's all, folks ---------------------------------------------------