commit:     8f970ff82c88b86565d88852624da143bb2d5288
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  1 20:50:53 2016 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Sep  1 20:50:53 2016 +0000
URL:        https://gitweb.gentoo.org/proj/baselayout.git/commit/?id=8f970ff8

Makefile: add changelog target

 Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 05c2a26..32d845a 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,7 @@ DISTFILE = $(PKG).tar.bz2
 
 DESTDIR =
 
+CHANGELOG_LIMIT = --after="1 year ago"
 INSTALL_DIR    = install -m 0755 -d
 INSTALL_EXE    = install -m 0755
 INSTALL_FILE   = install -m 0644
@@ -52,6 +53,9 @@ KEEP_DIRS = $(KEEP_DIRS-$(OS)) \
 
 all:
 
+changelog:
+       git log ${CHANGELOG_LIMIT} --format=full > ChangeLog
+
 clean:
 
 install:
@@ -105,6 +109,6 @@ snapshot:
        git archive --prefix=$(PKG)/ $(GITREF) | bzip2 > 
$(PKG)-$(GITREF).tar.bz2
        ls -l $(PKG)-$(GITREF).tar.bz2
 
-.PHONY: all clean install layout  live release snapshot
+.PHONY: all changelog clean install layout  live release snapshot
 
 # vim: set ts=4 :

Reply via email to