chiark / gitweb /
uopen.1: Reports wrong section in .TH line.
[preload-hacks] / Makefile
index ba847c5182a4d8e25ab5fe32194b1340e8c0b180..c8424a3a40425891e74bce3b3fb0e3c9c34b801d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
 PACKAGE = preload-hacks
-VERSION = 1.0.1
+VERSION := $(shell ./auto-version)
 
 prefix = /usr/local
 exec_prefix = ${prefix}
@@ -55,7 +55,8 @@ DISTTAR = $(DISTDIR).tar.gz
 distdir:
        rm -rf $(DISTDIR)
        mkdir $(DISTDIR)
-       ln $(SOURCES) $(MAN1) Makefile COPYING README $(DISTDIR)
+       ln $(SOURCES) $(MAN1) Makefile COPYING README auto-version $(DISTDIR)
+       echo $(VERSION) >$(DISTDIR)/RELEASE
        mkdir $(DISTDIR)/debian
        ln debian/rules debian/copyright debian/changelog debian/control \
          debian/*.install $(DISTDIR)/debian