Makefile: build tests in the old way if BUILDDIR is not defined. this fixes a bug introduced by some recent changes by Ole André Vadla Ravnås

This commit is contained in:
Nguyen Anh Quynh 2014-04-30 07:19:18 +08:00
parent 7a7343945d
commit 375f03c230
1 changed files with 4 additions and 0 deletions

View File

@ -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)