license: allow all future versions of the GNU GPL
[rainbows.git] / GNUmakefile
blob2e34cd93039d1c61a31a3d029625fe313de54b88
1 # use GNU Make to run tests in parallel, and without depending on RubyGems
2 all::
3 RSYNC_DEST := rubyforge.org:/var/www/gforge-projects/rainbows
4 rfproject := rainbows
5 rfpackage := rainbows
7 man-rdoc: man html
8 $(MAKE) -C Documentation comparison.html
9 for i in $(man1_rdoc); do echo > $$i; done
10 doc:: man-rdoc
11 include pkg.mk
12 ifneq ($(VERSION),)
13 release::
14 $(RAKE) publish_news VERSION=$(VERSION)
15 $(RAKE) fm_update VERSION=$(VERSION)
16 endif
18 base_bins := rainbows
19 bins := $(addprefix bin/, $(base_bins))
20 man1_rdoc := $(addsuffix _1, $(base_bins))
21 man1_bins := $(addsuffix .1, $(base_bins))
22 man1_paths := $(addprefix man/man1/, $(man1_bins))
24 clean:
25 -$(MAKE) -C Documentation clean
27 man html:
28 $(MAKE) -C Documentation install-$@
30 pkg_extra += $(man1_paths) lib/rainbows/version.rb
32 doc::
33 cat Documentation/comparison.css >> doc/rdoc.css
34 $(RM) $(man1_rdoc)
36 lib/rainbows/version.rb: GIT-VERSION-FILE
38 all:: test
39 test: lib/rainbows/version.rb
40 $(MAKE) -C t
42 .PHONY: man html