PX4: make upload targets depend on build targets

this allows for "make px4-v1-upload" for faster development cycles
This commit is contained in:
Andrew Tridgell 2013-08-06 15:37:41 +10:00
parent 38fe89d661
commit 1137de1002

View File

@ -63,12 +63,12 @@ px4: px4-v1 px4-v2
px4-clean: clean px4-archives-clean
$(v) /bin/rm -rf $(PX4_ROOT)/makefiles/build $(PX4_ROOT)/Build
px4-v1-upload:
px4-v1-upload: px4-v1
$(RULEHDR)
$(v) ln -sf $(PWD)/$(PX4_V1_CONFIG_FILE) $(PX4_ROOT)/makefiles/
$(v) $(PX4_MAKE) px4fmu-v1_APM upload
px4-v2-upload:
px4-v2-upload: px4-v2
$(RULEHDR)
$(v) ln -sf $(PWD)/$(PX4_V2_CONFIG_FILE) $(PX4_ROOT)/makefiles/
$(v) $(PX4_MAKE) px4fmu-v2_APM upload