From 375f03c23060e1de40baa1858109a97832e7e1e9 Mon Sep 17 00:00:00 2001 From: Nguyen Anh Quynh Date: Wed, 30 Apr 2014 07:19:18 +0800 Subject: [PATCH] =?UTF-8?q?Makefile:=20build=20tests=20in=20the=20old=20wa?= =?UTF-8?q?y=20if=20BUILDDIR=20is=20not=20defined.=20this=20fixes=20a=20bu?= =?UTF-8?q?g=20introduced=20by=20some=20recent=20changes=20by=20Ole=20Andr?= =?UTF-8?q?=C3=A9=20Vadla=20Ravn=C3=A5s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 8fecdef4..9aeb7e97 100644 --- a/Makefile +++ b/Makefile @@ -254,7 +254,11 @@ PKGCFGF = $(BLDIR)/$(LIBNAME).pc .PHONY: all clean install uninstall dist all: $(LIBRARY) $(ARCHIVE) $(PKGCFGF) +ifndef BUILDDIR + $(MAKE) -C tests +else $(MAKE) -C tests BUILDDIR=$(BLDIR) +endif $(INSTALL_DATA) $(BLDIR)/lib$(LIBNAME).$(EXT) $(BLDIR)/tests/ $(LIBRARY): $(LIBOBJ)