diff --git a/Makefile b/Makefile index 5e1ff189..63603d4e 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ # TOPDIR = . -HAVE_BUILDDEFS = $(shell test -f $(TOPDIR)/include/builddefs && echo yes || echo no) +HAVE_BUILDDEFS = $(shell test -f $(TOPDIR)/include/builddefs -a -f $(TOPDIR)/dmapi/Makefile && echo yes || echo no) ifeq ($(HAVE_BUILDDEFS), yes) include $(TOPDIR)/include/builddefs diff --git a/include/buildmacros b/include/buildmacros index c6678e57..44826455 100644 --- a/include/buildmacros +++ b/include/buildmacros @@ -129,7 +129,7 @@ SUBDIRS_MAKERULE = \ echo "DMAPI QA NOT AVAIABLE FOR IRIX"; \ else \ $(ECHO) === $$d ===; \ - cd dmapi && $(MAKE) && cd .. || exit $$?; \ + cd dmapi && $(MAKE) $@ && cd .. || exit $$?; \ fi; \ elif test -d "$$d" -a ! -z "$$d"; then \ $(ECHO) === $$d ===; \