Added 'savedefines' target working like 'savetarget'. Replaced $(warning...) with $(info...). Aded user feedback for the two 'save...' targets.
This commit is contained in:
parent
69faf1ff4d
commit
73027164c8
|
@ -11,13 +11,18 @@ ifeq ($(TARGET),)
|
||||||
ifeq ($(DEFAULT_TARGET),)
|
ifeq ($(DEFAULT_TARGET),)
|
||||||
DEFAULT_TARGET=native
|
DEFAULT_TARGET=native
|
||||||
endif
|
endif
|
||||||
${warning TARGET not defined, using target '$(DEFAULT_TARGET)'}
|
${info TARGET not defined, using target '$(DEFAULT_TARGET)'}
|
||||||
TARGET=$(DEFAULT_TARGET)
|
TARGET=$(DEFAULT_TARGET)
|
||||||
else
|
else
|
||||||
${warning using saved target '$(TARGET)'}
|
${info using saved target '$(TARGET)'}
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(DEFINES),)
|
||||||
|
-include Makefile.$(TARGET).defines
|
||||||
|
${info using saved defines '$(DEFINES)'}
|
||||||
|
endif
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
@echo "make MAKETARGETS... [TARGET=(TARGET)] [savetarget] [targets]"
|
@echo "make MAKETARGETS... [TARGET=(TARGET)] [savetarget] [targets]"
|
||||||
|
|
||||||
|
@ -26,8 +31,14 @@ targets:
|
||||||
|
|
||||||
savetarget:
|
savetarget:
|
||||||
-@rm -f Makefile.target
|
-@rm -f Makefile.target
|
||||||
|
@echo "saving Makefile.target"
|
||||||
@echo >Makefile.target "TARGET = $(TARGET)"
|
@echo >Makefile.target "TARGET = $(TARGET)"
|
||||||
|
|
||||||
|
savedefines:
|
||||||
|
-@rm -f Makefile.$(TARGET).defines
|
||||||
|
@echo "saving Makefile.$(TARGET).defines"
|
||||||
|
@echo >Makefile.$(TARGET).defines "DEFINES = $(DEFINES)"
|
||||||
|
|
||||||
ifeq (${wildcard $(OBJECTDIR)},)
|
ifeq (${wildcard $(OBJECTDIR)},)
|
||||||
DUMMY := ${shell mkdir $(OBJECTDIR)}
|
DUMMY := ${shell mkdir $(OBJECTDIR)}
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue