aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/Makefile.am
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-27 17:27:22 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-27 17:27:25 +0200
commit467da3af0bd88fea107db6dc615d33d682a42303 (patch)
treee424b5e3e9ff0e608aa6c2e0506b91e8d1e4fa31 /tests/libtest/Makefile.am
parent922f800603b76d3762fb335638de01524b562b60 (diff)
libtest/make: generate lib1521.c
... instead of having the generated code checked in. This saves space in the tarball but primarily automatically adapts to newly added options. Closes #1614
Diffstat (limited to 'tests/libtest/Makefile.am')
-rw-r--r--tests/libtest/Makefile.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/libtest/Makefile.am b/tests/libtest/Makefile.am
index e3d02be57..9128a453d 100644
--- a/tests/libtest/Makefile.am
+++ b/tests/libtest/Makefile.am
@@ -45,7 +45,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include \
endif
EXTRA_DIST = test75.pl test307.pl test610.pl test613.pl test1013.pl \
-test1022.pl Makefile.inc notexists.pl CMakeLists.txt
+test1022.pl Makefile.inc notexists.pl CMakeLists.txt mk-lib1521.pl
CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@
@@ -109,5 +109,11 @@ libhostname_la_SOURCES = sethostname.c sethostname.h
libhostname_la_LIBADD =
libhostname_la_DEPENDENCIES =
+lib1521.c: $(top_srcdir)/tests/libtest/mk-lib1521.pl $(top_srcdir)/include/curl/curl.h
+ @PERL@ $(top_srcdir)/tests/libtest/mk-lib1521.pl < $(top_srcdir)/include/curl/curl.h > lib1521.c
+
checksrc:
@PERL@ $(top_srcdir)/lib/checksrc.pl $(srcdir)/*.c
+
+dist:
+ rm lib1521.c