diff options
| author | anthony cantor <ar.cantor@gmail.com> | 2013-11-21 18:53:36 -0700 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2013-12-05 12:25:53 +0530 |
| commit | 24128a1819e679c65c832452b53d6a075d74ce7d (patch) | |
| tree | b55f2751b054993c3be4342d1b6db847a616d9df /arduino-mk/Arduino.mk | |
| parent | e04bb4d7d4d8df83aae7e856160b82480fe3f263 (diff) | |
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
Diffstat (limited to 'arduino-mk/Arduino.mk')
| -rw-r--r-- | arduino-mk/Arduino.mk | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
