Add rules to run run-iconv-test.sh.
authordrepper <drepper>
Wed, 15 Apr 1998 11:26:03 +0000 (11:26 +0000)
committerdrepper <drepper>
Wed, 15 Apr 1998 11:26:03 +0000 (11:26 +0000)
(distribute): Add run-iconv-test.sh and testdata/*.

iconvdata/Makefile

index 48d4495..30fe07b 100644 (file)
@@ -94,7 +94,8 @@ distribute := 8bit-generic.c 8bit-gap.c gap.pl gaptab.pl gconv-modules            \
              ebcdic-at-de-a.c ebcdic-ca-fr.c jis0201.c jis0208.c jis0212.c \
              extra-module.mk euckr.c johab.c uhc.c ksc5601.c ksc5601.h     \
              iso646.c big5.c eucjp.c gb2312.c gb2312.h euccn.c euctw.c     \
-             cns11643l1.c cns11643l1.h cns11643.h cns11643.c
+             cns11643l1.c cns11643l1.h cns11643.h cns11643.c               \
+             run-iconv-test.sh $(wildcard testdata/*)
 
 # We build the transformation modules only when we build shared libs.
 ifeq (yes,$(build-shared))
@@ -208,3 +209,11 @@ $(inst_gconvdir)/gconv-modules: gconv-modules $(+force)
 endif
 
 include ../Rules
+
+tests: $(objpfx)iconv-test.shout
+
+$(objpfx)iconv-test.shout: run-iconv-test.sh $(objpfx)gconv-modules
+       $(SHELL) -e $< $(common-objdir) > $@
+
+$(objpfx)gconv-modules: gconv-modules
+       cp $^ $@