about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-19 12:57:19 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-19 12:57:19 -0800
commit049ceab1d303105bf45951e00437af8979049204 (patch)
tree0a8a13459d2d839de56db924b5ab942a711677ec
parentbb4d312aedaa13548e5467512432b9a16b541a61 (diff)
downloadsleepy_penguin-049ceab1d303105bf45951e00437af8979049204.tar.gz
-rw-r--r--GNUmakefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6e2aaeb..569b10a 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -36,7 +36,11 @@ pkg_extra := GIT-VERSION-FILE NEWS ChangeLog LATEST
 ChangeLog: GIT-VERSION-FILE .wrongdoc.yml
         wrongdoc prepare
 
-.manifest: ChangeLog
+manifest:
+        $(RM) .manifest
+        $(MAKE) .manifest
+
+.manifest: ChangeLog GIT-VERSION-FILE
         (git ls-files && for i in $@ $(pkg_extra); do echo $$i; done) | \
                 LC_ALL=C sort > $@+
         cmp $@+ $@ || mv $@+ $@
@@ -83,14 +87,14 @@ gem: $(pkggem)
 install-gem: $(pkggem)
         gem install $(CURDIR)/$<
 
-$(pkggem): .manifest fix-perms
+$(pkggem): manifest fix-perms
         gem build $(rfpackage).gemspec
         mkdir -p pkg
         mv $(@F) $@
 
 $(pkgtgz): distdir = $(basename $@)
 $(pkgtgz): HEAD = v$(VERSION)
-$(pkgtgz): .manifest fix-perms
+$(pkgtgz): manifest fix-perms
         @test -n "$(distdir)"
         $(RM) -r $(distdir)
         mkdir -p $(distdir)
@@ -152,4 +156,4 @@ doc_gz:
         for i in $(docs); do \
           gzip --rsyncable -9 < $$i > $$i.gz; touch -r $$i $$i.gz; done
 
-.PHONY: .FORCE-GIT-VERSION-FILE doc test $(test_units)
+.PHONY: .FORCE-GIT-VERSION-FILE doc test $(test_units) manifest