about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-05-01 20:38:10 +0000
committerEric Wong <e@80x24.org>2018-05-01 20:38:10 +0000
commit9512331d3a38f619ad5a3ed5803f87efa2ad6ec5 (patch)
tree8b9f1f95d4df0d3d25890c21bc35bfce717ab698
parent0c4cd957bae93ac7bea43bfbd6170b8ba430edcf (diff)
-rw-r--r--GNUmakefile5
-rw-r--r--msgthr.gemspec1
2 files changed, 4 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index cc47f6e..8055f9f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -33,7 +33,7 @@ gem: $(pkggem)
 install-gem: $(pkggem)
         gem install --local $(CURDIR)/$<
 
-$(pkggem): .manifest
+$(pkggem): .manifest NEWS
         VERSION=$(VERSION) gem build $(pkg).gemspec
         mkdir -p pkg
         mv $(@F) $@
@@ -47,12 +47,13 @@ pkg_extra :=
 package: $(pkggem)
 
 NEWS: .olddoc.yml
-        $(OLDDOC) prepare
+        $(OLDDOC) prepare || echo 'See https://80x24.org/msgthr/NEWS' >$@
 LATEST: NEWS
 
 doc:: .document .olddoc.yml
         -find lib -type f -name '*.rbc' -exec rm -f '{}' ';'
         $(RM) -r doc
+        $(OLDDOC) prepare
         $(RDOC) -f oldweb
 
 # this requires GNU coreutils variants
diff --git a/msgthr.gemspec b/msgthr.gemspec
index ed043d6..71f3c18 100644
--- a/msgthr.gemspec
+++ b/msgthr.gemspec
@@ -3,6 +3,7 @@
 
 Gem::Specification.new do |s|
   manifest = File.read('.manifest').split(/\n/)
+  manifest << 'NEWS' if File.exist?('NEWS')
   s.name = %q{msgthr}
   s.version = ENV['VERSION'] || '1.2.1'
   s.authors = ['msgthr hackers']