aboutsummaryrefslogtreecommitdiff
path: root/makefiles/module.mk
diff options
context:
space:
mode:
authorpx4dev <px4@purgatory.org>2013-02-23 14:33:53 -0800
committerpx4dev <px4@purgatory.org>2013-02-23 22:01:00 -0800
commit6b215be739528eb20b50247a0a095d27092b3be4 (patch)
tree626241e09b180d4f8378a9512adf4832b188102c /makefiles/module.mk
parentd24599931a3d68586cc62eddd8ffc4e309ba1606 (diff)
downloadpx4-firmware-6b215be739528eb20b50247a0a095d27092b3be4.tar.gz
px4-firmware-6b215be739528eb20b50247a0a095d27092b3be4.tar.bz2
px4-firmware-6b215be739528eb20b50247a0a095d27092b3be4.zip
Use indirect calls for all commands (echo, make, etc.)
Replace our dependency on xxd with a toolchain call, and implement the backend using objcopy evil for the default toolchain.
Diffstat (limited to 'makefiles/module.mk')
-rw-r--r--makefiles/module.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/makefiles/module.mk b/makefiles/module.mk
index 306a9594f..bf54362e6 100644
--- a/makefiles/module.mk
+++ b/makefiles/module.mk
@@ -100,9 +100,9 @@ MODULE_COMMAND_FILES := $(addprefix $(WORK_DIR)/builtin_commands/COMMAND.,$(MODU
.PHONY: $(MODULE_COMMAND_FILES)
$(MODULE_COMMAND_FILES): $(GLOBAL_DEPS)
- @echo COMMAND $(word 2,$(subst ., ,$(notdir $(@))))
- @mkdir -p $@
- $(Q) touch $@
+ @$(ECHO) COMMAND $(word 2,$(subst ., ,$(notdir $(@))))
+ @$(MKDIR) -p $(dir $@)
+ $(Q) $(TOUCH) $@
endif
################################################################################