From 467da3af0bd88fea107db6dc615d33d682a42303 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 27 Jun 2017 17:27:22 +0200 Subject: 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 --- tests/libtest/Makefile.am | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tests/libtest/Makefile.am') 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 -- cgit v1.2.3