chiark / gitweb /
add target to to generate ChangeLog section
[elogind.git] / Makefile
index 5995b576970f8469ae7e8bfc77aa8c08e7c6fee6..d4ee3eb6be1401fb26b23cb4284fdb36b88af1fc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -377,9 +377,19 @@ test tests: all
 .PHONY: test tests
 
 buildtest:
-       ./test/simple-build-check.sh
+       test/simple-build-check.sh
 .PHONY: buildtest
 
+ChangeLog: Makefile
+       @ mv $@ $@.tmp
+       @ echo "Summary of changes from v$(VERSION) to v$(shell printf '%03i' $$(expr $(VERSION) + 1))" >> $@
+       @ echo "============================================" >> $@
+       @ git log --pretty=short $(VERSION)..HEAD | git shortlog  >> $@
+       @ echo >> $@
+       @ cat $@
+       @ cat $@.tmp >> $@
+       @ rm $@.tmp
+
 gcov-all:
        $(MAKE) clean all STRIPCMD= USE_GCOV=true
        @echo