Skip to content

Commit

Permalink
fix: abstract away all the file targets for make mrproper
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Jul 7, 2024
1 parent 5a63b31 commit 44c6a21
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ ifndef D
SKAP_OUT = $(SKAP_BUILD_DIR)/$(SKAP_NAME)
SKAP_ASSETPACK_OUT = $(ASSETS_DIR).$(SKAP_NAME)
endif
MRPROPER_TARGETS = $(GAME_NAME) $(GAME_NAME)_debug $(SKAP_ASSETPACK_OUT) $(SKAP_ASSETPACK_OUT).old carbon_results.xml


###################
Expand Down Expand Up @@ -465,11 +466,11 @@ clean:
fi

mrproper: clean
@for i in $(GAME_NAME) $(GAME_NAME)_debug $(SKAP_ASSETPACK_OUT) $(SKAP_ASSETPACK_OUT).old; do \
if [ -e $$i ]; then \
echo " $(PPO_CLEAN) $$i"; \
rm $$i; \
fi \
@for i in $(MRPROPER_TARGETS); do \
if [ -e $$i ]; then \
echo " $(PPO_CLEAN) $$i"; \
rm $$i; \
fi \
done

version:
Expand Down

0 comments on commit 44c6a21

Please sign in to comment.