test/snake/Makefile

changeset 242
6eeb987f1681
parent 198
916d2d125ecf
--- a/test/snake/Makefile	Sat Aug 02 14:58:30 2025 +0200
+++ b/test/snake/Makefile	Sat Aug 02 15:19:06 2025 +0200
@@ -25,12 +25,17 @@
 
 include ../../config.mk
 
-BUILD_DIR=$(srcdir)/build/test
+BUILD_DIR=$(srcdir)/build/snake
 LIB_ASCENSION=$(srcdir)/build/lib/libascension.a
 CFLAGS += -I$(srcdir)/src $(CPPFLAGS)
 
 all: $(BUILD_DIR) $(BUILD_DIR)/snake FORCE
 	@echo "Demo game 'snake' successfully built."
+	@cp -Ruf $(srcdir)/shader $(BUILD_DIR)/
+	@cp -Ruf $(srcdir)/fonts $(BUILD_DIR)/
+	@cp -Ruf textures $(BUILD_DIR)/
+	@cp -Ruf shader $(BUILD_DIR)/
+	@echo "Assets for demo game 'snake' successfully copied."
 
 $(BUILD_DIR):
 	mkdir -p $@
@@ -53,7 +58,8 @@
  ../../src/ascension/font.h ../../src/ascension/behavior.h \
  ../../src/ascension/ui.h ../../src/ascension/text.h \
  ../../src/ascension/mesh.h ../../src/ascension/texture.h \
- ../../src/ascension/sprite.h ../../src/ascension/2d.h
+ ../../src/ascension/sprite.h ../../src/ascension/2d.h \
+ ../../src/ascension/shader.h
 	@echo "Compiling $<"
 	$(CC) -o $@ $(CFLAGS) -c $<
 

mercurial