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 | |
| 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
| -rw-r--r-- | HISTORY.md | 1 | ||||
| -rw-r--r-- | arduino-mk/Arduino.mk | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -13,6 +13,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it - Change echo for printf. Fix #129 (https://github.com/thomassigurdsen) - Add support for ChipKiT 2013. Fix #136 (https://github.com/peplin) - Auto detect and include libraries specified in `USER_LIB_PATH`. Fix #135 (https://github.com/tinyladi) +- Use `MAKEFILE_LIST` to get the name of the make file. Fix #130 (https://github.com/cantora) ### 1.0.1 (2013-09-25) - Unconditionally add -D in avrdude options. See #114 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 |
