Commit b424e84518d7f1ff2e39c060836950220b8e4d44

Thomas de Grivel 2022-11-17T12:26:54

make dist

diff --git a/.gitignore b/.gitignore
index 9399e3c..1e0b2f7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,4 +1,5 @@
 *.a
+c3-*/
 c3-*.tar.gz
 c3c/c3c
 config.mk
diff --git a/Makefile b/Makefile
index c25eabd..be99669 100644
--- a/Makefile
+++ b/Makefile
@@ -59,7 +59,9 @@ debug:
 dist: c3-${C3_VERSION}.tar.gz
 
 c3-${C3_VERSION}.tar.gz:
-	pax -wz < c3.index > c3-${C3_VERSION}.tar.gz
+	mkdir c3-${C3_VERSION}
+	pax -rw < c3.index c3-${C3_VERSION}
+	pax -wz c3-${C3_VERSION} > c3-${C3_VERSION}.tar.gz
 
 distclean:
 	${MAKE} -C libtommath distclean
diff --git a/c3.index b/c3.index
index 59ef48b..18864a3 100644
--- a/c3.index
+++ b/c3.index
@@ -382,6 +382,7 @@ test/ic3/tuple.err.expected
 test/ic3/tuple.in
 test/ic3/tuple.out.expected
 test/ic3/tuple.ret.expected
+test/ic3_test
 test/ident_test.c
 test/libc3_test.c
 test/list_test.c
diff --git a/ucd2c/Makefile b/ucd2c/Makefile
index 9af0ba0..b16493d 100644
--- a/ucd2c/Makefile
+++ b/ucd2c/Makefile
@@ -30,7 +30,9 @@ UCD.zip:
 license.txt:
 	ftp "https://www.unicode.org/license.txt" -o license.txt
 
-ucd.c: UCD UCD/UnicodeData.txt ucd2c
+UCD/UnicodeData.txt: UCD
+
+ucd.c: UCD/UnicodeData.txt ucd2c
 	./ucd2c < UCD/UnicodeData.txt > ucd.c
 
 clean: