commit bb84f2ee82940a2008806d5e3a26977088986b99
parent 05886a9fd11ad40bc9ada619c856dad1f1251e64
Author: Steven G. Johnson <stevenj@alum.mit.edu>
Date: Fri, 20 Oct 2023 16:51:57 -0400
make dist target
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile
@@ -26,6 +26,9 @@ MAJOR=3
MINOR=0
PATCH=0
+# api version (also in utf8proc.h and CMakeLists.txt)
+VERSION=2.9.0
+
OS := $(shell uname)
ifeq ($(OS),Darwin) # MacOS X
SHLIB_EXT = dylib
@@ -168,6 +171,10 @@ test/custom: test/custom.c test/tests.o utf8proc.o utf8proc.h test/tests.h
test/misc: test/misc.c test/tests.o utf8proc.o utf8proc.h test/tests.h
$(CC) $(UCFLAGS) $(LDFLAGS) -DUNICODE_VERSION='"'`$(PERL) -ne "/^UNICODE_VERSION=/ and print $$';" data/Makefile`'"' test/misc.c test/tests.o utf8proc.o -o $@
+# make release tarball from master branch
+dist:
+ git archive master --prefix=utf8proc-$(VERSION)/ -o utf8proc-$(VERSION).tar.gz
+
check: test/normtest data/NormalizationTest.txt data/Lowercase.txt data/Uppercase.txt test/graphemetest data/GraphemeBreakTest.txt test/printproperty test/case test/iscase test/custom test/charwidth test/misc test/valid test/iterate bench/bench.c bench/util.c bench/util.h utf8proc.o
$(MAKE) -C bench
test/normtest data/NormalizationTest.txt