make: reorganised beacon makefile

This commit is contained in:
Eric Teunis de Boone 2022-10-05 19:27:27 +02:00
parent a0ecca113b
commit d73d007164

View file

@ -2,14 +2,11 @@
all: dist
dist: \
sine_beacon.pdf sine_beacon.png \
ttl_beacon.pdf ttl_beacon.png \
field_single_left_time.pdf field_single_left_time.png \
field_single_left_phase.pdf field_single_left_phase.png \
field_single_center_time.pdf field_single_center_time.png \
field_single_center_phase.pdf field_single_center_phase.png \
antenna_setup_four.pdf antenna_setup_four.png \
antenna_setup_three.pdf antenna_setup_three.png
single_beacon \
field_single \
field_square \
antenna_setup \
#
dist-clean:
rm -v sine_beacon.*
@ -18,10 +15,18 @@ dist-clean:
rm -v field_single_left_phase.*
rm -v field_single_center_time.*
rm -v field_single_center_phase.*
rm -v field_square_all_time.*
rm -v field_square_all_phase.*
rm -v field_square_ref0_time.*
rm -v field_square_ref0_phase.*
beacon_spatial_time_difference_setup.pdf: src/beacon_spatial_time_difference_setup.py
$< $@
single_beacon: \
sine_beacon.pdf sine_beacon.png \
ttl_beacon.pdf ttl_beacon.png
sine_beacon.%: src/single_beacon.py
$< --periods 2 --no-grid --with-rates sine $@
@ -29,6 +34,13 @@ ttl_beacon.%: src/single_beacon.py
$< --periods 2 --no-grid --with-rates ttl $@
field_single: \
field_single_left_time.pdf field_single_left_time.png \
field_single_left_phase.pdf field_single_left_phase.png \
field_single_center_time.pdf field_single_center_time.png \
field_single_center_phase.pdf field_single_center_phase.png \
#
field_single_left_time.%: src/beacon_field.py
$< --time $@ single-left
field_single_left_phase.%: src/beacon_field.py
@ -39,6 +51,28 @@ field_single_center_time.%: src/beacon_field.py
field_single_center_phase.%: src/beacon_field.py
$< --phase $@ single-center
field_square: \
field_square_all_time.pdf field_square_all_time.png \
field_square_all_phase.pdf field_square_all_phase.png \
field_square_ref0_time.pdf field_square_ref0_time.png \
field_square_ref0_phase.pdf field_square_ref0_phase.png \
#
field_square_ref0_time.%: src/beacon_field.py
$< --time $@ square --ref 0
field_square_ref0_phase.%: src/beacon_field.py
$< --phase $@ square --ref 0
field_square_all_time.%: src/beacon_field.py
$< --time $@ square
field_square_all_phase.%: src/beacon_field.py
$< --phase $@ square
antenna_setup: \
antenna_setup_four.pdf antenna_setup_four.png \
antenna_setup_three.pdf antenna_setup_three.png \
#
antenna_setup_four.%: src/four_antenna_setup.py
$< $@