openrc/mk/dist.mk

12 lines
285 B
Makefile
Raw Normal View History

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