Build smw_assets.dat with Makefile
This commit is contained in:
qurious-pixel 2023-07-24 07:11:51 -07:00 committed by GitHub
parent 4424c32a98
commit 3fca65fa30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 2 deletions

View File

@ -17,7 +17,7 @@ endif
.PHONY: all clean clean_obj
all: $(TARGET_EXEC)
all: $(TARGET_EXEC) assets/smw_assets.dat
$(TARGET_EXEC): $(OBJS) $(RES)
$(CC) $^ -o $@ $(LDFLAGS) $(SDLFLAGS)
@ -28,6 +28,13 @@ $(TARGET_EXEC): $(OBJS) $(RES)
# @echo "Generating Windows resources"
# @$(WINDRES) $< -O coff -o $@
clean: clean_obj
assets/smw_assets.dat:
@echo "Extracting game resources"
$(PYTHON) assets/restool.py
clean: clean_obj clean_gen
clean_obj:
@$(RM) $(OBJS) $(TARGET_EXEC)
clean_gen:
@$(RM) $(RES) smw_assets.dat
@rm -rf assets/__pycache__