aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-12-04 10:39:24 +0100
committerThomas Gubler <thomasgubler@gmail.com>2014-12-04 10:39:24 +0100
commit8e8f84bde0d2e15734d931ea38a7b294a06d7314 (patch)
tree34486c8b4ea7dc5691871b180b910670383db602 /Makefile
parent83d97fd1c27728145e4869f957afcc7cae57ff8a (diff)
downloadpx4-firmware-8e8f84bde0d2e15734d931ea38a7b294a06d7314.tar.gz
px4-firmware-8e8f84bde0d2e15734d931ea38a7b294a06d7314.tar.bz2
px4-firmware-8e8f84bde0d2e15734d931ea38a7b294a06d7314.zip
uorb topic header generator: only create new files if the file content really changed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7df8004a4..bdbc18be5 100644
--- a/Makefile
+++ b/Makefile
@@ -227,12 +227,15 @@ updatesubmodules:
MSG_DIR = $(PX4_BASE)msg/px4_msgs
MSG_TEMPLATE_DIR = $(PX4_BASE)msg/templates
TOPICS_DIR = $(PX4_BASE)src/modules/uORB/topics
+TOPICS_TEMPORARY_DIR = $(BUILD_DIR)topics_temporary
.PHONY: generateuorbtopicheaders
generateuorbtopicheaders:
@$(ECHO) "Generating uORB topic headers"
$(Q) ($(PX4_BASE)/Tools/px_generate_uorb_topic_headers.py -d $(MSG_DIR) \
- -o $(TOPICS_DIR) -e $(MSG_TEMPLATE_DIR))
+ -o $(TOPICS_DIR) -e $(MSG_TEMPLATE_DIR) -t $(TOPICS_TEMPORARY_DIR))
+# clean up temporary files
+ $(Q) (rm -r $(TOPICS_TEMPORARY_DIR))
#
# Testing targets