Add target to create ChangeLog

This was added by request because some users are requesting a ChangeLog.

This fixes #29.
This commit is contained in:
William Hubbs 2014-12-07 17:16:48 -06:00
parent 7a92eb8887
commit 3647db7a27

View File

@ -8,12 +8,17 @@ DISTFILE?= ${DISTPREFIX}.tar.bz2
CLEANFILES+= ${NAME}-*.tar.bz2 CLEANFILES+= ${NAME}-*.tar.bz2
CHANGELOG_LIMIT?= --after=$(shell date --utc --date="1 year ago" +%Y-%m-%d)
_SNAP_SH= date -u +%Y%m%d%H%M _SNAP_SH= date -u +%Y%m%d%H%M
_SNAP:= $(shell ${_SNAP_SH}) _SNAP:= $(shell ${_SNAP_SH})
SNAP= ${_SNAP} SNAP= ${_SNAP}
SNAPDIR= ${DISTPREFIX}-${SNAP} SNAPDIR= ${DISTPREFIX}-${SNAP}
SNAPFILE= ${SNAPDIR}.tar.bz2 SNAPFILE= ${SNAPDIR}.tar.bz2
changelog:
git log ${CHANGELOG_LIMIT} --format=medium > ChangeLog
dist: dist:
git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE} git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}