summaryrefslogtreecommitdiff
path: root/Makefile
blob: e506470ab955af10f5ce40708f0899c3132c674d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
.POSIX:

data_dir = data
shaders = data/triangle.csh
tools = qstd cfg sc

.PHONY: all clean $(tools)
all: $(shaders) $(tools)

qstd:
	$(MAKE) -C qstd

cfg: qstd
	$(MAKE) -C cfg

sc: qstd cfg
	$(MAKE) -C sc

data/triangle.csh: intermediate/triangle.glsl | $(data_dir) sc
	./sc/sc intermediate/triangle.glsl data/triangle.csh

$(data_dir):
	mkdir -p $(data_dir)

clean:
	rm -rf $(data_dir)
	make -C qstd clean
	make -C cfg clean
	make -C sc clean