about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--local.mk.sample5
1 files changed, 4 insertions, 1 deletions
diff --git a/local.mk.sample b/local.mk.sample
index 6896afa..68cb044 100644
--- a/local.mk.sample
+++ b/local.mk.sample
@@ -27,11 +27,14 @@ test-18:
 test-19:
         $(MAKE) test test-rails r19=1 2>&1 | sed -u -e 's!^!1.9 !'
 
+latest: NEWS
+        @awk 'BEGIN{RS="=== ";ORS=""}NR==2{sub(/\n$$/,"");print RS""$$0 }' < $<
+
 # publishes docs to http://unicorn.bogomips.org
 publish_doc:
         -git set-file-times
         $(MAKE) doc
-        awk 'BEGIN{RS="=== ";ORS=""}NR==2{ print RS""$$0 }' NEWS > doc/LATEST
+        $(MAKE) -s latest > doc/LATEST
         $(MAKE) doc_gz
         rsync -av --delete doc/ dcvr:/srv/unicorn/
         git ls-files | xargs touch