no need to define COPY_DIR when cleaning

This commit is contained in:
farisawan-2000
2021-06-02 09:03:36 -04:00
parent 32c06751ba
commit acf4a9dbc4

View File

@@ -29,8 +29,10 @@ clean:
rm -r build/
COPY_DIR := none
ifeq ($(COPY_DIR),none)
$(error S2DEX Text Engine: No COPY_DIR defined!)
ifneq ($(MAKECMDGOALS),clean)
ifeq ($(COPY_DIR),none)
$(error S2DEX Text Engine: No COPY_DIR defined!)
endif
endif
$(BUILD_DIR)/$(TARGET): $(O_FILES)