GNUmakefile in http_spew-0.1.0 vs GNUmakefile in http_spew-0.2.0
- old
+ new
@@ -1,5 +1,16 @@
all::
RSYNC_DEST := bogomips.org:/srv/bogomips/http_spew
rfproject := rainbows
rfpackage := http_spew
+
+RUBY_VERSION_FILE = lib/http_spew/version.rb
+pkg_extra += $(RUBY_VERSION_FILE)
include pkg.mk
+
+$(RUBY_VERSION_FILE): GIT-VERSION-FILE
+ @$(RM) -f $@+
+ @echo >> $@+ '# -*- encoding: binary -*-'
+ @echo >> $@+ 'HTTP_Spew.const_set :VERSION, "$(GIT_VERSION)"'
+ @mv $@+ $@
+
+build: $(RUBY_VERSION_FILE)