~mht/cra

ref: 0ae09d4ccc2fc00e0591c85d8885f2cc724679be cra/cra/Makefile -rw-r--r-- 760 bytes
0ae09d4c — Martin Hafskjold Thoresen Fix plot bug, and improve stats printing 2 years ago
                                                                                
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
# These files contains the a triangulation. Point and face
# info is in the file, edge info is implicit in the face info.
%.tri: %.points triangulate2
	./triangulate2 < $^ > $@

# SVGs are mainly for just looking at the triangulations
%.svg: %.tri svg.py
	python3 svg.py < $^ > $@

%.out: %.tri target/debug/cra src/main.rs
	cargo run --release -- < $< | grep "pair" | sed -e "s/[^0-9 .-]//g"  > $@

%.pdf: %.out
	@echo "\
	set terminal pdf size 20cm,20cm;\
	set xlabel \"Birth\";\
	set ylabel \"Death\";\
	set key outside center top horizontal;\
	plot '$<' using 1:2 pt 7 ps 0.25, x" | gnuplot > $@

triangulate2: triangulate2.cpp
	clang++ -O2 -Wall triangulate2.cpp -DCGAL_HEADER_ONLY -lgmp -o triangulate2  

.PHONY:
clean:
	rm -fr *.tri *.svg triangulate2