fix: PROJECT = jw-pf-3dprinter -> jw-pf

The contents of the PROJECT variable was misdetected from the directory name in
that everything after a number was discarded. This commit fixes that.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-05-19 13:13:14 +00:00
commit 55cc335140

View file

@ -144,7 +144,7 @@ endef
# ----- standard variables
ifeq ($(PROJECT),)
PROJECT := $(shell $(ECHO) $(patsubst $(FLAVOUR_PREFIX)%,%,$(notdir $(realpath $(TOPDIR)))) | $(SED) 's/-[0-9].*//')
PROJECT := $(shell $(ECHO) $(patsubst $(FLAVOUR_PREFIX)%,%,$(notdir $(realpath $(TOPDIR)))) | $(SED) 's/-[0-9]\+\..*//')
endif
ifneq ($(wildcard $(TOPDIR)/.git),)