Move clean rule out of single-target block.

This commit is contained in:
Steveice10
2016-12-23 15:07:02 -08:00
parent 6211706b6c
commit f0297ae3da
+7 -5
View File
@@ -17,7 +17,7 @@ endif
ifneq ($(TARGETS),)
.PHONY: all
.PHONY: all clean
all:
@$(foreach target,$(TARGETS),make --no-print-directory TARGET=$(target);)
@@ -389,10 +389,6 @@ endif
all: $(OUTPUT_ZIP_FILE)
clean:
@rm -rf $(BUILD_DIR) $(OUTPUT_DIR)
@echo "Cleaned."
# TARGET RULES #
ifeq ($(TARGET_OS),3ds)
@@ -609,3 +605,9 @@ DEPENDS := $(OBJECT_FILES:.o=.d)
-include $(DEPENDS)
endif
# CLEAN #
clean:
@rm -rf $(BUILD_DIR) $(OUTPUT_DIR)
@echo "Cleaned."