-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
72 lines (54 loc) · 1.56 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
CONFIG = \
config/FACT.cfg \
build/camera_FACT.dat \
build/mirror_FACT.dat \
build/pulse_shape.dat
all: test build/hillas.pdf build/laser_waveforms.png build/waveforms.png build/display-dl1.pdf build/intensity.png
test: build/pytest.out
build/pytest.out: | build
pytest -q | tee $@
build:
mkdir -p build
build/pulse_shape.dat: scripts/pulse_shape.py | build
python $<
build/hillas.pdf: scripts/hist_hillas.py build/events.dl1.h5
python $<
build/events.dl1.h5: build/simtel-output.zst
ctapipe-stage1-process \
--input=$< \
--output=$@ \
--overwrite \
--write-parameters \
--write-images \
--progress
mv provenance.log build/
build/display-dl1.pdf: build/simtel-output.zst | build
rm -f $@
ctapipe-display-dl1 \
--input $< \
--ImagePlotter.display=False \
--max_events=10 \
-O $@
mv provenance.log build/
build/true_pe.png: scripts/plot_true_pe.py build/simtel-output.zst | build
rm -f build/true_pe*
python $<
build/simtel-output.zst: run.sh $(CONFIG) | build
rm -f $@
./run.sh
mv telarray_rand.conf.used build/
build/mirror_FACT.dat: scripts/convert_mirror.py config/reflector.txt | build
python $<
build/camera_FACT.dat: scripts/camera.py | build
python $<
build/waveforms.png: scripts/waveforms.py build/simtel-output.zst | build
python $<
build/laser_waveforms.png: scripts/laser_waveforms.py build/simtel-output.zst | build
python $<
build/pulse_shape.png: scripts/plot_pulse.py build/pulse_shape.dat
python $<
build/energy.png: scripts/plot_energy.py build/simtel-output.zst
python $<
.PHONY: all clean test
clean:
rm -rf build