diff options
| author | lonkaars <loek@pipeframe.xyz> | 2024-05-18 11:27:25 +0200 |
|---|---|---|
| committer | lonkaars <loek@pipeframe.xyz> | 2024-05-18 11:27:25 +0200 |
| commit | 08529a4a8e685637c1e733a6fff528a813d9a95c (patch) | |
| tree | 2ef35b36297eeea92e155fcb9a5bbfbe43bc4e24 /makefile | |
| parent | 1b1314ed856f8380726fd07cde5dd73125101ef2 (diff) | |
ensure same source
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -7,11 +7,17 @@ GLFLAGS += -fauto-map-locations main: main.c -main.c: spirv_vert.h -main.c: spirv_frag.h +main.c: vert_spirv.h +main.c: frag_spirv.h +main.c: vert_src.h +main.c: frag_src.h -%_frag.h: %.frag +frag_spirv.h: shader.frag glslc $(GLFLAGS) -mfmt=c -o $@ $< -%_vert.h: %.vert +vert_spirv.h: shader.vert glslc $(GLFLAGS) -mfmt=c -o $@ $< +frag_src.h: shader.frag + xxd -i < $< > $@ +vert_src.h: shader.vert + xxd -i < $< > $@ |