From 123f5c39669abc055987d69a311785c861494c87 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Fri, 22 Aug 2008 17:14:31 -0700 Subject: [PATCH] Dependency improvements (but still needs some work). --- src/Makefile.am | 6 ++++++ tests/Makefile.am | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 6db4ac17..441cfa1b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -51,6 +51,12 @@ EXTRA_wget_SOURCES = mswindows.c LDADD = $(LIBOBJS) ../lib/libgnu.a @MD5_LDADD@ AM_CPPFLAGS = -I$(top_srcdir)/lib @MD5_CPPFLAGS@ +../lib/libgnu.a: + cd ../lib && $(MAKE) $(AM_MAKEFLAGS) + +../md5/libmd5.a: + cd ../lib && $(MAKE) $(AM_MAKEFLAGS) + ESCAPEQUOTE = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/' version.c: $(wget_SOURCES) $(LDADD) $(srcdir)/Makefile.am echo '/* version.c */' > $@ diff --git a/tests/Makefile.am b/tests/Makefile.am index 27f9adaa..6e703f01 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -42,10 +42,19 @@ test: ../src/wget$(EXEEXT) run-unit-tests run-px-tests ../src/wget$(EXEEXT): cd ../src && $(MAKE) $(AM_MAKEFLAGS) +../src/libunittest.a: + cd ../src && $(MAKE) $(AM_MAKEFLAGS) libunittest.a + +../lib/libgnu.a: + cd ../lib && $(MAKE) $(AM_MAKEFLAGS) + +../md5/libmd5.a: + cd ../lib && $(MAKE) $(AM_MAKEFLAGS) + run-unit-tests: unit-tests$(EXEEXT) ./unit-tests$(EXEEXT) -run-px-tests: WgetTest.pm +run-px-tests: WgetTest.pm ../src/wget$(EXEEXT) ./run-px $(top_srcdir) EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \ @@ -62,6 +71,7 @@ EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \ check_PROGRAMS = unit-tests unit_tests_SOURCES = +#unit-tests: ../src/libunittest.a ../lib/libgnu.a LDADD = ../src/libunittest.a ../lib/libgnu.a @LIBSSL@ @LIBGNUTLS@ \ @MD5_LDADD@