Makefile.base: Assign module name with simple expansion

This commit is contained in:
Leandro Lanzieri 2020-02-04 13:13:22 +01:00
parent 769209351a
commit d1fcc17c09

View File

@ -14,7 +14,8 @@ endif
unexport DIRS
DIRS := $(sort $(abspath $(DIRS)))
MODULE ?= $(shell basename $(CURDIR))
_MOD := $(shell basename $(CURDIR))
MODULE ?= $(_MOD)
.PHONY: all clean $(DIRS:%=ALL--%) $(DIRS:%=CLEAN--%)