forked from ariadne/libucontext
build: add dist/distcheck
parent
bced874113
commit
5cf38aeae8
13
Makefile
13
Makefile
|
@ -122,4 +122,15 @@ include/libucontext/bits.h: arch/${ARCH}/freestanding/bits.h
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: check
|
PACKAGE_NAME = libucontext
|
||||||
|
PACKAGE_VERSION = ${LIBUCONTEXT_VERSION}
|
||||||
|
DIST_NAME = ${PACKAGE_NAME}-${PACKAGE_VERSION}
|
||||||
|
DIST_TARBALL = ${DIST_NAME}.tar.xz
|
||||||
|
|
||||||
|
distcheck: check dist
|
||||||
|
dist: ${DIST_TARBALL}
|
||||||
|
${DIST_TARBALL}:
|
||||||
|
git archive --format=tar --prefix=${DIST_NAME}/ -o ${DIST_NAME}.tar ${DIST_NAME}
|
||||||
|
xz ${DIST_NAME}.tar
|
||||||
|
|
||||||
|
.PHONY: check dist
|
||||||
|
|
Loading…
Reference in New Issue