aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrysn2013-01-10 11:37:51 +0100
committerchrysn2013-01-10 11:37:51 +0100
commitc2437246760010e600369525acf599a8c5d83cdf (patch)
tree0fcff1cc1cf5b52aba0da263841b5f0d20ad4d36
parent204eb047b48d813c1b3b1c08ea1fb232d3bd89e7 (diff)
platform-independent makefile: fix old "stm32" reference
the "make clean" target showed a constant "stm32/f1" debug message instead of the current relative directory. this is fixed by showing the relevant portion of the current directory instead, relevant being determined by evaluating the current makefile's relative position and stripping that part off.
-rw-r--r--lib/Makefile.include2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Makefile.include b/lib/Makefile.include
index 6c25069..f9eeefe 100644
--- a/lib/Makefile.include
+++ b/lib/Makefile.include
@@ -42,7 +42,7 @@ $(SRCLIBDIR)/$(LIBNAME).ld: $(LIBNAME).ld
$(Q)$(CC) $(CFLAGS) -o $@ -c $<
clean:
- @printf " CLEAN lib/stm32/f1\n"
+ @printf " CLEAN lib$(subst $(shell cd $(dir $(lastword $(MAKEFILE_LIST))) && pwd),,$(shell pwd))\n"
$(Q)rm -f *.o *.d ../*.o ../*.d
$(Q)rm -f $(SRCLIBDIR)/$(LIBNAME).a
$(Q)rm -f $(SRCLIBDIR)/$(LIBNAME).ld