ifeq ($(HAVE_BUILDDEFS), yes)
include $(TOPDIR)/include/builddefs
+else
+export TESTS_DIR = tests
endif
SRCTAR = $(PKG_NAME)-$(PKG_VERSION).tar.gz
LIB_SUBDIRS = include lib
TOOL_SUBDIRS = ltp src m4 common
-export TESTS_DIR = tests
SUBDIRS = $(LIB_SUBDIRS) $(TOOL_SUBDIRS) $(TESTS_DIR)
-default: include/builddefs $(DMAPI_MAKEFILE)
+default: include/builddefs
ifeq ($(HAVE_BUILDDEFS), no)
$(Q)$(MAKE) $(MAKEOPTS) $@
else