Jetpack/laird/backport/Makefile.build

18 lines
370 B
Makefile
Raw Permalink Normal View History

# detect if make supports --eval
_EVAL := $(shell make --eval "test:" -f /dev/null test >/dev/null 2>&1 && echo YES || echo NO)
ifeq ($(_EVAL),YES)
MAKE=$(BACKPORT_DIR)/scripts/make
else
-include .config
endif
export
.PHONY: modules
modules:
@$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_DIR) modules
.PHONY: clean
clean:
@$(MAKE) -C $(KLIB_BUILD) M=$(BACKPORT_DIR) clean