
ifneq (,$(MK.configure))

ifneq ($(VERBOSE),1)
CONFIGURE_FLAGS += --enable-silent-rules
endif

$(CONFIGURE_BUILD_DIR)/Makefile: $(SRCDIR)/configure
	$(SHOW)set -e ;\
		cd $(CONFIGURE_BUILD_DIR) ;\
		$(abspath $(SRCDIR))/configure $(CONFIGURE_FLAGS)

$(CONFIGURE_TARGET): $(CONFIGURE_BUILD_DIR)/Makefile
	$(SHOW)make -C $(CONFIGURE_BUILD_DIR) -j $(NPROC)

clean-configure:
	$(SHOW)make -C $(CONFIGURE_BUILD_DIR) distclean

.PHONY: clean-configure

endif # MK.configure
