forked from tamionv/spectral-drawer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
27 lines (17 loc) · 968 Bytes
/
makefile
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
all: bin/main.exe bin/bendy.exe bin/loopy.exe bin/random.exe bin/hypercube6d.exe bin/meandering.exe bin/ring.exe bin/square_surface.exe bin/tesselated_cubes.exe bin/triangular_surface.exe
img:
mkdir img
bin:
mkdir bin
bin/%.exe: src/%.cpp bin
g++ $< -o $@ -std=c++11 -O2
img/%.pgm: graphs/% bin/main.exe img
./bin/main.exe < $< > $@
graphs/%: bin/%.exe
./$< > $@
PremadeExamples=foster levi shrikhande sylvester schlaafli ljublijana hypercube4 26fullerene 24fullerene archimedes1 archimedes10 archimedes11 archimedes12 archimedes13 archimedes2 archimedes3 archimedes4 archimedes5 archimedes6 archimedes7 archimedes8 archimedes9 petersen platonic1 platonic2 platonic3 platonic4 platonic5
GeneratedExamples=bendy loopy meandering random square_surface triangular_surface tesselated_cubes hypercube6d ring
Examples=$(PremadeExamples) $(GeneratedExamples)
examples: $(patsubst %,img/%.pgm,$(Examples))
clean:
rm $(patsubst %,graphs/%,$(GeneratedExamples))