From 382d12a414942f027ea30911294cd8c8becdf2cd Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 17 Sep 2009 02:55:00 -0700 Subject: doc: generate ChangeLog and NEWS file for RDoc No point in having those files under revision control or repeating work to generate them. --- GNUmakefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index a3e0c5c..3d07600 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,6 +1,7 @@ # use GNU Make to run tests in parallel, and without depending on Rubygems all:: test ruby = ruby +rake = rake ragel = ragel RLFLAGS = -G2 -include local.mk @@ -128,8 +129,18 @@ Manifest: cmp $@+ $@ || mv $@+ $@ $(RM) -f $@+ +NEWS: + $(rake) -s history > $@+ + mv $@+ $@ + +ChangeLog: + @echo ChangeLog from git://git.bogomips.org/unicorn.git > $@+ + @echo >> $@+ + git log | sed -e 's/^/ /' >> $@+ + mv $@+ $@ + # using rdoc 2.4.1+ -doc: .document $(ext)/unicorn_http.c +doc: .document $(ext)/unicorn_http.c NEWS ChangeLog rdoc -Na -t "$(shell sed -ne '1s/^= //p' README)" install -m644 COPYING doc/COPYING cd doc && ln README.html tmp.html && mv tmp.html index.html @@ -153,4 +164,4 @@ $(T_r).%.r: export RAILS_GIT_REPO = $(CURDIR)/$(rails_git) $(T_r).%.r: $(test_prefix)/.stamp $(rails_git)/info/cloned-stamp $(run_test) -.PHONY: doc $(T) $(slow_tests) Manifest +.PHONY: doc $(T) $(slow_tests) Manifest ChangeLog -- cgit v1.2.3-24-ge0c7