2020-12-08 01:14:51 +00:00
|
|
|
SCDOC := scdoc
|
|
|
|
|
2018-01-31 05:58:26 +00:00
|
|
|
ARCH := $(shell uname -m)
|
2019-09-18 14:54:53 +00:00
|
|
|
ifeq ($(ARCH),$(filter $(ARCH),i386 i686))
|
|
|
|
override ARCH = x86
|
|
|
|
endif
|
2020-12-11 12:09:59 +00:00
|
|
|
ifeq ($(ARCH),$(filter $(ARCH),sh2 sh4))
|
|
|
|
override ARCH = sh
|
|
|
|
endif
|
2020-12-12 06:46:08 +00:00
|
|
|
ifeq ($(ARCH),$(filter $(ARCH),ppc64le))
|
|
|
|
override ARCH = ppc64
|
|
|
|
endif
|
2021-02-05 16:46:38 +00:00
|
|
|
ifeq ($(ARCH),$(filter $(ARCH),armv7l))
|
|
|
|
override ARCH = arm
|
|
|
|
endif
|
2021-11-13 11:10:25 +00:00
|
|
|
ifeq ($(ARCH),$(filter $(ARCH),arm64))
|
|
|
|
override ARCH = aarch64
|
|
|
|
endif
|
2018-01-30 03:41:02 +00:00
|
|
|
|
2022-09-09 21:59:57 +00:00
|
|
|
prefix = /usr
|
|
|
|
libdir = ${prefix}/lib
|
|
|
|
shared_libdir = ${libdir}
|
|
|
|
static_libdir = ${libdir}
|
|
|
|
includedir = ${prefix}/include
|
|
|
|
pkgconfigdir = ${prefix}/lib/pkgconfig
|
|
|
|
|
2022-02-13 06:25:11 +00:00
|
|
|
CFLAGS ?= -ggdb3 -O2 -Wall
|
2020-12-06 09:31:48 +00:00
|
|
|
CPPFLAGS := -Iinclude -Iarch/${ARCH} -Iarch/common
|
2021-11-13 11:10:25 +00:00
|
|
|
ifneq ($(shell uname),Darwin)
|
|
|
|
EXPORT_UNPREFIXED := yes
|
|
|
|
else
|
|
|
|
# Darwin does not support aliases
|
|
|
|
EXPORT_UNPREFIXED := no
|
|
|
|
endif
|
2020-12-06 09:08:14 +00:00
|
|
|
FREESTANDING := no
|
|
|
|
|
|
|
|
ifeq ($(FREESTANDING),yes)
|
2022-02-13 06:25:47 +00:00
|
|
|
CPPFLAGS += -DFREESTANDING
|
2023-06-19 21:25:26 +00:00
|
|
|
EXPORT_UNPREFIXED = no -Iarch/${ARCH}/include
|
|
|
|
else
|
|
|
|
CPPFLAGS += -Iarch/common/include
|
2020-12-06 09:08:14 +00:00
|
|
|
endif
|
2020-12-06 08:54:01 +00:00
|
|
|
|
2022-03-04 18:40:30 +00:00
|
|
|
FORCE_SOFT_FLOAT := no
|
|
|
|
|
|
|
|
ifeq ($(FORCE_SOFT_FLOAT),yes)
|
|
|
|
CPPFLAGS += -DFORCE_SOFT_FLOAT
|
|
|
|
endif
|
|
|
|
|
|
|
|
FORCE_HARD_FLOAT := no
|
|
|
|
|
|
|
|
ifeq ($(FORCE_HARD_FLOAT),yes)
|
|
|
|
CPPFLAGS += -DFORCE_HARD_FLOAT
|
|
|
|
endif
|
|
|
|
|
2020-12-06 08:54:01 +00:00
|
|
|
ifeq ($(EXPORT_UNPREFIXED),yes)
|
2022-02-13 06:25:47 +00:00
|
|
|
CPPFLAGS += -DEXPORT_UNPREFIXED
|
2020-12-06 08:54:01 +00:00
|
|
|
endif
|
2018-01-30 03:41:02 +00:00
|
|
|
|
ppc32/64: rewrite get/set/swapcontext in assembly
getcontext cannot be correctly implemented in C.
If this calls another function, as it does to call syscall, it needs to
first spill its return address to the stack. If, after getcontext returns,
its caller then calls other functions, this saved return address can be
clobbered. When the context saved by getcontext is later restored, the
(now clobbered) return address will be reloaded from the stack, and the
second return from getcontext will return to the wrong location.
Because the powerpc swapcontext syscall allows either the old context or
new context pointers to be null, it is usable for implementing all of
get/set/swapcontext.
We therefore rewrite swapcontext in assembly, and get/setcontext as simple
assembly function wrappers around swapcontext.
The one piece we keep in C is the code to check the return value of the
system call and to set errno. This code was actually unnecessary before --
libc does this within syscall. However, now that the system call is made
directly in assembly, bypassing libc, it is truly necessary. Because errno
is thread-local and the details of how to set it can vary by libc, this
code remains written in C.
2019-02-23 23:12:37 +00:00
|
|
|
LIBUCONTEXT_C_SRC = $(wildcard arch/${ARCH}/*.c)
|
|
|
|
LIBUCONTEXT_S_SRC = $(wildcard arch/${ARCH}/*.S)
|
2018-01-29 21:50:49 +00:00
|
|
|
|
2021-11-13 11:10:25 +00:00
|
|
|
ifeq ($(shell test -d arch/${ARCH}/include; echo $?),0)
|
|
|
|
CPPFLAGS += -Iarch/${ARCH}/include
|
|
|
|
endif
|
|
|
|
|
2021-01-08 10:12:33 +00:00
|
|
|
LIBUCONTEXT_VERSION := $(shell head -n 1 VERSION)
|
2018-01-29 21:50:49 +00:00
|
|
|
LIBUCONTEXT_OBJ = ${LIBUCONTEXT_C_SRC:.c=.o} ${LIBUCONTEXT_S_SRC:.S=.o}
|
2021-01-09 07:55:58 +00:00
|
|
|
LIBUCONTEXT_SOVERSION = 1
|
2021-11-13 11:10:25 +00:00
|
|
|
ifeq ($(shell uname),Darwin)
|
|
|
|
LIBUCONTEXT_NAME = libucontext.dylib
|
|
|
|
LIBUCONTEXT_SONAME = libucontext.${LIBUCONTEXT_SOVERSION}.dylib
|
|
|
|
LIBUCONTEXT_POSIX_NAME = libucontext_posix.dylib
|
|
|
|
LIBUCONTEXT_POSIX_SONAME = libucontext_posix.${LIBUCONTEXT_SOVERSION}.dylib
|
|
|
|
LIBUCONTEXT_LINKER_FLAGS = -Wl,-dynamiclib,-install_name,${LIBUCONTEXT_SONAME},-current_version,${LIBUCONTEXT_SOVERSION},-compatibility_version,${LIBUCONTEXT_SOVERSION}
|
|
|
|
LIBUCONTEXT_POSIX_LINKER_FLAGS = -Wl,-dynamiclib,-install_name,${LIBUCONTEXT_POSIX_SONAME},-current_version,${LIBUCONTEXT_SOVERSION},-compatibility_version,${LIBUCONTEXT_SOVERSION}
|
|
|
|
else
|
|
|
|
LIBUCONTEXT_NAME = libucontext.so
|
|
|
|
LIBUCONTEXT_SONAME = libucontext.so.${LIBUCONTEXT_SOVERSION}
|
|
|
|
LIBUCONTEXT_POSIX_NAME = libucontext_posix.so
|
|
|
|
LIBUCONTEXT_POSIX_SONAME = libucontext_posix.so.${LIBUCONTEXT_SOVERSION}
|
2022-02-13 06:11:37 +00:00
|
|
|
LIBUCONTEXT_LINKER_FLAGS = -shared -Wl,-soname,${LIBUCONTEXT_SONAME} -Wl,-z,noexecstack
|
|
|
|
LIBUCONTEXT_POSIX_LINKER_FLAGS = -shared -Wl,-soname,${LIBUCONTEXT_POSIX_SONAME} -Wl,-z,noexecstack
|
|
|
|
ASFLAGS = -Wa,--noexecstack
|
2021-11-13 11:10:25 +00:00
|
|
|
endif
|
2019-04-09 13:07:39 +00:00
|
|
|
LIBUCONTEXT_STATIC_NAME = libucontext.a
|
2020-12-06 10:10:14 +00:00
|
|
|
LIBUCONTEXT_PC = libucontext.pc
|
2022-09-09 21:59:57 +00:00
|
|
|
LIBUCONTEXT_PATH = ${shared_libdir}/${LIBUCONTEXT_SONAME}
|
|
|
|
LIBUCONTEXT_STATIC_PATH = ${static_libdir}/${LIBUCONTEXT_STATIC_NAME}
|
2020-12-06 09:31:48 +00:00
|
|
|
LIBUCONTEXT_HEADERS = \
|
|
|
|
include/libucontext/libucontext.h \
|
|
|
|
include/libucontext/bits.h
|
2020-12-08 01:15:18 +00:00
|
|
|
LIBUCONTEXT_EXAMPLES = \
|
|
|
|
examples/cooperative_threading
|
2020-12-09 01:29:21 +00:00
|
|
|
LIBUCONTEXT_POSIX_STATIC_NAME = libucontext_posix.a
|
|
|
|
LIBUCONTEXT_POSIX_C_SRC = libucontext_posix.c
|
|
|
|
LIBUCONTEXT_POSIX_OBJ = ${LIBUCONTEXT_POSIX_C_SRC:.c=.o}
|
2022-09-09 21:59:57 +00:00
|
|
|
LIBUCONTEXT_POSIX_PATH = ${shared_libdir}/${LIBUCONTEXT_POSIX_SONAME}
|
|
|
|
LIBUCONTEXT_POSIX_STATIC_PATH = ${static_libdir}/${LIBUCONTEXT_POSIX_STATIC_NAME}
|
2018-01-29 21:50:49 +00:00
|
|
|
|
2020-12-09 01:29:21 +00:00
|
|
|
ifeq ($(FREESTANDING),yes)
|
|
|
|
LIBUCONTEXT_POSIX_NAME =
|
|
|
|
LIBUCONTEXT_POSIX_STATIC_NAME =
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: ${LIBUCONTEXT_SONAME} ${LIBUCONTEXT_STATIC_NAME} ${LIBUCONTEXT_POSIX_NAME} ${LIBUCONTEXT_POSIX_STATIC_NAME} ${LIBUCONTEXT_PC}
|
|
|
|
|
|
|
|
${LIBUCONTEXT_POSIX_NAME}: ${LIBUCONTEXT_NAME} ${LIBUCONTEXT_POSIX_OBJ}
|
2022-02-13 06:19:47 +00:00
|
|
|
$(CC) -fPIC -o ${LIBUCONTEXT_POSIX_NAME} ${LIBUCONTEXT_POSIX_LINKER_FLAGS} ${LIBUCONTEXT_POSIX_OBJ} -L. -lucontext ${LDFLAGS}
|
2020-12-09 01:29:21 +00:00
|
|
|
|
2021-01-08 01:50:15 +00:00
|
|
|
${LIBUCONTEXT_POSIX_STATIC_NAME}: ${LIBUCONTEXT_STATIC_NAME} ${LIBUCONTEXT_POSIX_OBJ}
|
2020-12-09 01:29:21 +00:00
|
|
|
$(AR) rcs ${LIBUCONTEXT_POSIX_STATIC_NAME} ${LIBUCONTEXT_POSIX_OBJ}
|
2019-04-09 13:07:39 +00:00
|
|
|
|
2020-12-09 01:39:54 +00:00
|
|
|
${LIBUCONTEXT_POSIX_SONAME}: ${LIBUCONTEXT_POSIX_NAME}
|
|
|
|
ln -sf ${LIBUCONTEXT_POSIX_NAME} ${LIBUCONTEXT_POSIX_SONAME}
|
|
|
|
|
2023-06-19 21:25:26 +00:00
|
|
|
${LIBUCONTEXT_STATIC_NAME}: ${LIBUCONTEXT_OBJ}
|
2019-04-09 13:07:39 +00:00
|
|
|
$(AR) rcs ${LIBUCONTEXT_STATIC_NAME} ${LIBUCONTEXT_OBJ}
|
2018-01-29 21:50:49 +00:00
|
|
|
|
2023-06-19 21:25:26 +00:00
|
|
|
${LIBUCONTEXT_NAME}: ${LIBUCONTEXT_OBJ}
|
2021-11-13 11:10:25 +00:00
|
|
|
$(CC) -fPIC -o ${LIBUCONTEXT_NAME} ${LIBUCONTEXT_LINKER_FLAGS} ${LIBUCONTEXT_OBJ} ${LDFLAGS}
|
2018-01-29 21:50:49 +00:00
|
|
|
|
2018-01-30 03:53:04 +00:00
|
|
|
${LIBUCONTEXT_SONAME}: ${LIBUCONTEXT_NAME}
|
|
|
|
ln -sf ${LIBUCONTEXT_NAME} ${LIBUCONTEXT_SONAME}
|
2018-01-29 21:50:49 +00:00
|
|
|
|
2020-12-06 10:10:14 +00:00
|
|
|
${LIBUCONTEXT_PC}: libucontext.pc.in
|
|
|
|
sed -e s:@LIBUCONTEXT_VERSION@:${LIBUCONTEXT_VERSION}:g \
|
2022-09-09 21:59:57 +00:00
|
|
|
-e s:@LIBUCONTEXT_SHARED_LIBDIR@:${shared_libdir}:g \
|
|
|
|
-e s:@LIBUCONTEXT_STATIC_LIBDIR@:${static_libdir}:g \
|
|
|
|
-e s:@LIBUCONTEXT_INCLUDEDIR@:${includedir}:g $< > $@
|
2020-12-06 10:10:14 +00:00
|
|
|
|
2020-12-08 01:14:51 +00:00
|
|
|
MANPAGES_SYMLINKS_3 = \
|
2020-12-08 01:19:37 +00:00
|
|
|
libucontext_getcontext.3 \
|
|
|
|
libucontext_makecontext.3 \
|
|
|
|
libucontext_setcontext.3 \
|
|
|
|
libucontext_swapcontext.3
|
2020-12-08 01:14:51 +00:00
|
|
|
MANPAGES_3 = doc/libucontext.3
|
|
|
|
|
|
|
|
MANPAGES = ${MANPAGES_3}
|
|
|
|
|
|
|
|
.scd.3:
|
|
|
|
${SCDOC} < $< > $@
|
|
|
|
|
|
|
|
.SUFFIXES: .scd .3
|
|
|
|
|
|
|
|
docs: ${MANPAGES}
|
|
|
|
|
2018-01-29 21:50:49 +00:00
|
|
|
.c.o:
|
2020-12-11 23:18:04 +00:00
|
|
|
$(CC) -std=gnu99 -D_BSD_SOURCE -fPIC -DPIC ${CFLAGS} ${CPPFLAGS} -c -o $@ $<
|
2018-01-29 21:50:49 +00:00
|
|
|
|
|
|
|
.S.o:
|
2022-02-13 06:11:37 +00:00
|
|
|
$(CC) -fPIC -DPIC ${CFLAGS} ${CPPFLAGS} ${ASFLAGS} -c -o $@ $<
|
2018-01-29 21:50:49 +00:00
|
|
|
|
2020-12-09 01:39:54 +00:00
|
|
|
${LIBUCONTEXT_NAME}_clean:
|
|
|
|
rm -f ${LIBUCONTEXT_NAME}
|
|
|
|
|
|
|
|
${LIBUCONTEXT_SONAME}_clean:
|
|
|
|
rm -f ${LIBUCONTEXT_SONAME}
|
|
|
|
|
|
|
|
${LIBUCONTEXT_STATIC_NAME}_clean:
|
|
|
|
rm -f ${LIBUCONTEXT_STATIC_NAME}
|
|
|
|
|
|
|
|
libucontext_obj_clean:
|
|
|
|
rm -f ${LIBUCONTEXT_OBJ}
|
|
|
|
|
|
|
|
${LIBUCONTEXT_PC}_clean:
|
|
|
|
rm -f ${LIBUCONTEXT_PC}
|
|
|
|
|
|
|
|
${LIBUCONTEXT_POSIX_NAME}_clean:
|
|
|
|
rm -f ${LIBUCONTEXT_POSIX_NAME}
|
|
|
|
|
2022-02-13 07:18:19 +00:00
|
|
|
${LIBUCONTEXT_POSIX_SONAME}_clean:
|
|
|
|
rm -f ${LIBUCONTEXT_POSIX_SONAME}
|
|
|
|
|
2020-12-09 01:39:54 +00:00
|
|
|
${LIBUCONTEXT_POSIX_STATIC_NAME}_clean:
|
|
|
|
rm -f ${LIBUCONTEXT_POSIX_STATIC_NAME}
|
|
|
|
|
|
|
|
libucontext_posix_obj_clean:
|
|
|
|
rm -f ${LIBUCONTEXT_POSIX_OBJ}
|
|
|
|
|
2021-01-08 09:37:47 +00:00
|
|
|
check_clean: check_bare_clean check_posix_clean check_bare_posixabi_clean
|
2020-12-09 01:39:54 +00:00
|
|
|
|
|
|
|
check_bare_clean:
|
|
|
|
rm -f test_libucontext
|
|
|
|
|
|
|
|
check_posix_clean:
|
|
|
|
rm -f test_libucontext_posix
|
|
|
|
|
2021-01-08 09:37:47 +00:00
|
|
|
check_bare_posixabi_clean:
|
|
|
|
rm -f test_libucontext_bare_posixabi
|
|
|
|
|
2020-12-09 01:39:54 +00:00
|
|
|
docs_clean:
|
|
|
|
rm -f ${MANPAGES}
|
|
|
|
|
|
|
|
clean: ${LIBUCONTEXT_NAME}_clean
|
|
|
|
clean: ${LIBUCONTEXT_SONAME}_clean
|
|
|
|
clean: ${LIBUCONTEXT_STATIC_NAME}_clean
|
|
|
|
clean: ${LIBUCONTEXT_PC}_clean
|
|
|
|
clean: ${LIBUCONTEXT_POSIX_NAME}_clean
|
2022-02-13 07:18:19 +00:00
|
|
|
clean: ${LIBUCONTEXT_POSIX_SONAME}_clean
|
2020-12-09 01:39:54 +00:00
|
|
|
clean: ${LIBUCONTEXT_POSIX_STATIC_NAME}_clean
|
|
|
|
clean: libucontext_posix_obj_clean
|
|
|
|
clean: libucontext_obj_clean
|
|
|
|
clean: check_clean
|
|
|
|
clean: docs_clean
|
2018-01-29 21:50:49 +00:00
|
|
|
|
|
|
|
install: all
|
2020-03-30 08:21:20 +00:00
|
|
|
install -D -m755 ${LIBUCONTEXT_NAME} ${DESTDIR}${LIBUCONTEXT_PATH}
|
|
|
|
install -D -m664 ${LIBUCONTEXT_STATIC_NAME} ${DESTDIR}${LIBUCONTEXT_STATIC_PATH}
|
2022-09-09 21:59:57 +00:00
|
|
|
ln -sf ${LIBUCONTEXT_SONAME} ${DESTDIR}${shared_libdir}/${LIBUCONTEXT_NAME}
|
2020-12-06 10:01:26 +00:00
|
|
|
for i in ${LIBUCONTEXT_HEADERS}; do \
|
|
|
|
destfn=$$(echo $$i | sed s:include/::g); \
|
2022-09-09 21:59:57 +00:00
|
|
|
install -D -m644 $$i ${DESTDIR}${includedir}/$$destfn; \
|
2020-12-06 10:01:26 +00:00
|
|
|
done
|
2022-09-09 21:59:57 +00:00
|
|
|
install -D -m644 ${LIBUCONTEXT_PC} ${DESTDIR}${pkgconfigdir}/${LIBUCONTEXT_PC}
|
2023-05-19 01:10:01 +00:00
|
|
|
if [ -n "${LIBUCONTEXT_POSIX_NAME}" ]; then \
|
2020-12-09 01:29:21 +00:00
|
|
|
install -D -m755 ${LIBUCONTEXT_POSIX_NAME} ${DESTDIR}${LIBUCONTEXT_POSIX_PATH}; \
|
2021-01-09 08:00:05 +00:00
|
|
|
install -D -m644 ${LIBUCONTEXT_POSIX_STATIC_NAME} ${DESTDIR}${LIBUCONTEXT_POSIX_STATIC_PATH}; \
|
2020-12-09 01:29:21 +00:00
|
|
|
fi
|
2018-01-30 03:53:04 +00:00
|
|
|
|
2020-12-08 01:19:37 +00:00
|
|
|
install_docs: docs
|
|
|
|
install -D -m644 doc/libucontext.3 ${DESTDIR}/usr/share/man/man3/libucontext.3
|
|
|
|
for i in ${MANPAGES_SYMLINKS_3}; do \
|
|
|
|
ln -s libucontext.3 ${DESTDIR}/usr/share/man/man3/$$i; \
|
|
|
|
done
|
|
|
|
|
2020-12-09 01:39:54 +00:00
|
|
|
ifneq (${FREESTANDING},yes)
|
|
|
|
check: check_libucontext_posix
|
|
|
|
|
2022-02-13 08:53:45 +00:00
|
|
|
check_libucontext_posix: test_libucontext_posix ${LIBUCONTEXT_POSIX_SONAME} ${LIBUCONTEXT_SONAME}
|
2020-12-09 01:39:54 +00:00
|
|
|
env LD_LIBRARY_PATH=$(shell pwd) ./test_libucontext_posix
|
|
|
|
|
|
|
|
test_libucontext_posix: test_libucontext_posix.c ${LIBUCONTEXT_POSIX_NAME}
|
2020-12-12 06:37:31 +00:00
|
|
|
$(CC) -std=gnu99 -D_BSD_SOURCE ${CFLAGS} ${CPPFLAGS} $@.c -o $@ -L. -lucontext -lucontext_posix
|
2020-12-09 01:39:54 +00:00
|
|
|
endif
|
|
|
|
|
2021-01-08 09:37:47 +00:00
|
|
|
ifeq ($(EXPORT_UNPREFIXED),yes)
|
|
|
|
check: check_libucontext_bare_posixabi
|
|
|
|
|
|
|
|
check_libucontext_bare_posixabi: test_libucontext_bare_posixabi ${LIBUCONTEXT_SONAME}
|
|
|
|
env LD_LIBRARY_PATH=$(shell pwd) ./test_libucontext_bare_posixabi
|
|
|
|
|
|
|
|
test_libucontext_bare_posixabi: test_libucontext_posix.c ${LIBUCONTEXT_NAME}
|
|
|
|
$(CC) -std=gnu99 -D_BSD_SOURCE ${CFLAGS} ${CPPFLAGS} test_libucontext_posix.c -o $@ -L. -lucontext
|
|
|
|
endif
|
|
|
|
|
2022-02-13 08:54:34 +00:00
|
|
|
check_libucontext: test_libucontext ${LIBUCONTEXT_SONAME}
|
2018-02-14 03:30:50 +00:00
|
|
|
env LD_LIBRARY_PATH=$(shell pwd) ./test_libucontext
|
2018-01-30 03:53:04 +00:00
|
|
|
|
2022-02-13 08:54:34 +00:00
|
|
|
check: check_libucontext
|
|
|
|
|
2018-02-01 01:27:13 +00:00
|
|
|
test_libucontext: test_libucontext.c ${LIBUCONTEXT_NAME}
|
2020-12-11 23:18:04 +00:00
|
|
|
$(CC) -std=gnu99 -D_BSD_SOURCE ${CFLAGS} ${CPPFLAGS} $@.c -o $@ -L. -lucontext
|
2018-01-30 03:53:04 +00:00
|
|
|
|
2020-12-08 01:15:18 +00:00
|
|
|
examples: ${LIBUCONTEXT_EXAMPLES}
|
|
|
|
examples/cooperative_threading: examples/cooperative_threading.c ${LIBUCONTEXT_NAME}
|
2020-12-11 23:18:04 +00:00
|
|
|
$(CC) -std=gnu99 -D_BSD_SOURCE ${CFLAGS} ${CPPFLAGS} $@.c -o $@ -L. -lucontext
|
2020-12-08 01:15:18 +00:00
|
|
|
|
2020-12-08 01:28:02 +00:00
|
|
|
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
|