about summary refs log tree commit homepage
path: root/GNUmakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-02-16 00:04:53 +0000
committerEric Wong <normalperson@yhbt.net>2013-02-16 00:04:53 +0000
commit7dd14b2780b87be58c7afbd03df8d1f7cc3e9575 (patch)
tree865ba58592250b6dc19207c2bea8e1b9508df40f /GNUmakefile
parente166cfe5e8d648b544b1291ec157bd234a425e21 (diff)
downloadrainbows-7dd14b2780b87be58c7afbd03df8d1f7cc3e9575.tar.gz
This DRYs up versioning and makes packages easier to distribute.
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index cd087db..5fb780c 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -28,14 +28,16 @@ clean:
 man html:
         $(MAKE) -C Documentation install-$@
 
-pkg_extra += $(man1_paths)
+pkg_extra += $(man1_paths) lib/rainbows/version.rb
 
 doc::
         cat Documentation/comparison.css >> doc/rdoc.css
         $(RM) $(man1_rdoc)
 
+lib/rainbows/version.rb: GIT-VERSION-FILE
+
 all:: test
-test:
+test: lib/rainbows/version.rb
         $(MAKE) -C t
 
 .PHONY: man html