openrc/mk/dist.mk
2008-03-03 13:14:54 +00:00

12 lines
285 B
Makefile

# rules to make a distribution tarball from a git repo
# Copyright 2008 Roy Marples <roy@marples.name>
GITREF?= HEAD
DISTPREFIX?= ${NAME}-${VERSION}
DISTFILE?= ${DISTPREFIX}.tar.bz2
CLEANFILES+= ${DISTFILE}
dist:
git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}