chiark / gitweb /
Makefile.am: Write release number into distribution packages.
[sod] / Makefile.am
index 515031e139c37d44a33c2b8e37d761d76c08d8a9..0171170f36b9291acc183722b3fc80dd0df1248a 100644 (file)
@@ -39,4 +39,14 @@ SUBDIRS                      += lib
 ## The tests and examples.
 SUBDIRS                        += test
 
+###--------------------------------------------------------------------------
+### Distribution.
+
+## Release number.
+dist-hook:
+       echo $(VERSION) >$(distdir)/RELEASE
+
+## Additional build tools.
+EXTRA_DIST             += config/auto-version
+
 ###----- That's all, folks --------------------------------------------------