1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

build: add gcs_clean and fix uavobjects_clean targets

This commit is contained in:
Stacey Sheldon 2011-04-24 18:22:50 -04:00
parent 116848d8dd
commit 268522c91b

View File

@ -221,8 +221,9 @@ endif
all_ground: openpilotgcs all_ground: openpilotgcs
# Convenience target for the GCS # Convenience target for the GCS
.PHONY: gcs .PHONY: gcs gcs_clean
gcs: openpilotgcs gcs: openpilotgcs
gcs_clean: openpilotgcs_clean
.PHONY: openpilotgcs .PHONY: openpilotgcs
openpilotgcs: uavobjects_gcs openpilotgcs: uavobjects_gcs
@ -244,6 +245,11 @@ else
$(error $@ is currently only available on Windows) $(error $@ is currently only available on Windows)
endif endif
.PHONY: openpilotgcs_clean
openpilotgcs_clean:
$(V0) @echo " CLEAN $@"
$(V1) [ ! -d "$(BUILD_DIR)/ground/openpilotgcs" ] || $(RM) -r "$(BUILD_DIR)/ground/openpilotgcs"
.PHONY: uavobjgenerator .PHONY: uavobjgenerator
uavobjgenerator: uavobjgenerator:
$(V1) mkdir -p $(BUILD_DIR)/ground/$@ $(V1) mkdir -p $(BUILD_DIR)/ground/$@
@ -270,6 +276,7 @@ uavobjects_test: $(UAVOBJ_OUT_DIR) uavobjgenerator
$(V1) $(UAVOBJGENERATOR) -v -none $(UAVOBJ_XML_DIR) $(ROOT_DIR) $(V1) $(UAVOBJGENERATOR) -v -none $(UAVOBJ_XML_DIR) $(ROOT_DIR)
uavobjects_clean: uavobjects_clean:
$(V0) @echo " CLEAN $@"
$(V1) [ ! -d "$(UAVOBJ_OUT_DIR)" ] || $(RM) -r "$(UAVOBJ_OUT_DIR)" $(V1) [ ! -d "$(UAVOBJ_OUT_DIR)" ] || $(RM) -r "$(UAVOBJ_OUT_DIR)"
############################## ##############################