diff --git a/Makefile b/Makefile index 7bfa7e6a8..3a59daa73 100644 --- a/Makefile +++ b/Makefile @@ -221,8 +221,9 @@ endif all_ground: openpilotgcs # Convenience target for the GCS -.PHONY: gcs +.PHONY: gcs gcs_clean gcs: openpilotgcs +gcs_clean: openpilotgcs_clean .PHONY: openpilotgcs openpilotgcs: uavobjects_gcs @@ -244,6 +245,11 @@ else $(error $@ is currently only available on Windows) endif +.PHONY: openpilotgcs_clean +openpilotgcs_clean: + $(V0) @echo " CLEAN $@" + $(V1) [ ! -d "$(BUILD_DIR)/ground/openpilotgcs" ] || $(RM) -r "$(BUILD_DIR)/ground/openpilotgcs" + .PHONY: uavobjgenerator uavobjgenerator: $(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) uavobjects_clean: + $(V0) @echo " CLEAN $@" $(V1) [ ! -d "$(UAVOBJ_OUT_DIR)" ] || $(RM) -r "$(UAVOBJ_OUT_DIR)" ##############################