mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-1694 make package rule non-nested: made PACKAGE_DIR target
This commit is contained in:
parent
b0ff0f2e52
commit
225d0fa249
7
Makefile
7
Makefile
@ -147,6 +147,9 @@ $(TOOLS_DIR):
|
||||
$(BUILD_DIR):
|
||||
$(MKDIR) -p $@
|
||||
|
||||
$(PACKAGE_DIR):
|
||||
$(MKDIR) -p $@
|
||||
|
||||
##############################
|
||||
#
|
||||
# UAVObjects
|
||||
@ -795,10 +798,8 @@ ifneq ($(strip $(filter package,$(MAKECMDGOALS))),)
|
||||
endif
|
||||
|
||||
.PHONY: package
|
||||
package: all_fw all_ground uavobjects_matlab
|
||||
package: all_fw all_ground uavobjects_matlab $(PACKAGE_DIR)
|
||||
@$(ECHO) "Packaging for $(UNAME) $(ARCH) into $(call toprel, $(PACKAGE_DIR)) directory"
|
||||
$(V1) [ ! -d "$(PACKAGE_DIR)" ] || $(RM) -rf "$(PACKAGE_DIR)"
|
||||
$(V1) $(MKDIR) -p "$(PACKAGE_DIR)"
|
||||
$(MAKE) --no-print-directory -C $(ROOT_DIR)/package --file=$(UNAME).mk $@
|
||||
|
||||
##############################
|
||||
|
Loading…
x
Reference in New Issue
Block a user