Skip to content

Commit bb84f2e

Browse files
committed
make dist target
1 parent 05886a9 commit bb84f2e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ MAJOR=3
2626
MINOR=0
2727
PATCH=0
2828

29+
# api version (also in utf8proc.h and CMakeLists.txt)
30+
VERSION=2.9.0
31+
2932
OS := $(shell uname)
3033
ifeq ($(OS),Darwin) # MacOS X
3134
SHLIB_EXT = dylib
@@ -168,6 +171,10 @@ test/custom: test/custom.c test/tests.o utf8proc.o utf8proc.h test/tests.h
168171
test/misc: test/misc.c test/tests.o utf8proc.o utf8proc.h test/tests.h
169172
$(CC) $(UCFLAGS) $(LDFLAGS) -DUNICODE_VERSION='"'`$(PERL) -ne "/^UNICODE_VERSION=/ and print $$';" data/Makefile`'"' test/misc.c test/tests.o utf8proc.o -o $@
170173

174+
# make release tarball from master branch
175+
dist:
176+
git archive master --prefix=utf8proc-$(VERSION)/ -o utf8proc-$(VERSION).tar.gz
177+
171178
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
172179
$(MAKE) -C bench
173180
test/normtest data/NormalizationTest.txt

0 commit comments

Comments
 (0)