From 24128a1819e679c65c832452b53d6a075d74ce7d Mon Sep 17 00:00:00 2001 From: anthony cantor Date: Thu, 21 Nov 2013 18:53:36 -0700 Subject: Use MAKEFILE_LIST to get the name of the make file This way we don't assume the make file is 'Makefile' and it will work even if it is named as 'makefile' or 'makefile-uno' Fix #130 --- arduino-mk/Arduino.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arduino-mk/Arduino.mk') diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 42b3abe..1ba2b81 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -880,9 +880,9 @@ $(OBJDIR)/libs/%.o: $(USER_LIB_PATH)/%.c $(CC) -MMD -c $(CPPFLAGS) $(CFLAGS) $< -o $@ ifdef COMMON_DEPS - COMMON_DEPS := $(COMMON_DEPS) Makefile + COMMON_DEPS := $(COMMON_DEPS) $(MAKEFILE_LIST) else - COMMON_DEPS := Makefile + COMMON_DEPS := $(MAKEFILE_LIST) endif # normal local sources -- cgit v1.2.3