Split clean steps
This commit is contained in:
parent
a54152cfea
commit
122e839ea8
8
Makefile
8
Makefile
@ -16,7 +16,7 @@ ITCH_CHANNEL_LINUX=linux-x64
|
|||||||
ITCH_CHANNEL_WINDOWS=windows-x64
|
ITCH_CHANNEL_WINDOWS=windows-x64
|
||||||
ITCH_CHANNEL_MAC=mac
|
ITCH_CHANNEL_MAC=mac
|
||||||
|
|
||||||
.PHONY: clean run butler_upload build_levels build_images
|
.PHONY: clean clean_game clean_assets run butler_upload build_levels build_images
|
||||||
|
|
||||||
run: $(GAME)_linux build_levels build_images
|
run: $(GAME)_linux build_levels build_images
|
||||||
SKIP_INTRO=1 ./$(GAME)_linux
|
SKIP_INTRO=1 ./$(GAME)_linux
|
||||||
@ -53,17 +53,21 @@ $(GAME)_windows.exe: *.c
|
|||||||
$(GAME)_mac: *.c
|
$(GAME)_mac: *.c
|
||||||
$(CC) *.c $(CFLAGS) -o $(GAME)_mac
|
$(CC) *.c $(CFLAGS) -o $(GAME)_mac
|
||||||
|
|
||||||
clean:
|
clean_game:
|
||||||
rm -f ./$(GAME)_linux
|
rm -f ./$(GAME)_linux
|
||||||
rm -f ./$(GAME)_linux.zip
|
rm -f ./$(GAME)_linux.zip
|
||||||
rm -f ./$(GAME)_windows.exe
|
rm -f ./$(GAME)_windows.exe
|
||||||
rm -f ./$(GAME)_windows.zip
|
rm -f ./$(GAME)_windows.zip
|
||||||
rm -f ./$(GAME)_mac
|
rm -f ./$(GAME)_mac
|
||||||
rm -f ./$(GAME)_mac.zip
|
rm -f ./$(GAME)_mac.zip
|
||||||
|
|
||||||
|
clean_assets:
|
||||||
rm -f ./levels/*.csv
|
rm -f ./levels/*.csv
|
||||||
rm -f ./img/*.png
|
rm -f ./img/*.png
|
||||||
rm -f ./tilesets/*.png
|
rm -f ./tilesets/*.png
|
||||||
|
|
||||||
|
clean: clean_game clean_assets
|
||||||
|
|
||||||
$(GAME)_linux.zip: $(GAME)_linux
|
$(GAME)_linux.zip: $(GAME)_linux
|
||||||
rm -f ./$(GAME)_linux.zip
|
rm -f ./$(GAME)_linux.zip
|
||||||
zip -r $(GAME)_linux.zip $(GAME)_linux COPYING img/*.png img/LICENSE
|
zip -r $(GAME)_linux.zip $(GAME)_linux COPYING img/*.png img/LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user