summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-27 18:57:00 +1100
committerquou <quou@disroot.org>2024-12-27 19:00:03 +1100
commit9278e969f71e7a70c68f9476513e01648cb49d86 (patch)
treea92e71c595d893311878ac3f2c4213c48f8eb9bf /Makefile
parentd920e5d62020d751ccaa3491cc66275ade749011 (diff)
Fix linux build
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1ac5f97..a86a869 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ target = c2
data_dir = data
shaders = $(data_dir)/triangle.csh $(data_dir)/ui.csh
textures = $(data_dir)/22.tex $(data_dir)/kita.tex
-packed_files = $(notdir $(shaders)) $(notdir $(textures))
+packed_files = $(shaders) $(textures)
tools = qstd cfg sc
objects = app.o c2.o video.o pipeline.o asset.o ui.o maths.o
includes = -Iqstd
@@ -32,7 +32,7 @@ convtexture: convtexture.c | qstd
$(CC) $(cflags) convtexture.c $(lflags) -Lqstd -lqstd -o convtexture
pack: $(packed_files) packer
- ./packer pack $(data_dir) $(packed_files)
+ ./packer pack $(data_dir) $(notdir $(packed_files))
data/triangle.csh: intermediate/triangle.glsl | $(data_dir) sc
./sc/sc intermediate/triangle.glsl $(data_dir)/triangle.csh
@@ -81,6 +81,7 @@ clean:
rm -f $(objects)
rm -f $(targets)
rm -f convtexture
+ rm -f packer
make -C qstd clean
make -C cfg clean
make -C sc clean