2023-07-22 19:49:00 +00:00
|
|
|
MAKEFLAGS += --no-print-directory
|
|
|
|
|
2023-07-23 10:44:16 +00:00
|
|
|
## Formatter
|
|
|
|
STYLE_BLUEPRINT=webkit
|
|
|
|
FORMATTER=clang-format -i -style=$(STYLE_BLUEPRINT)
|
|
|
|
|
2023-11-18 21:07:12 +00:00
|
|
|
build-examples:
|
2023-07-22 19:49:00 +00:00
|
|
|
cd examples/01_one_sample && make && echo
|
2023-09-13 17:03:03 +00:00
|
|
|
cd examples/02_many_samples_time_to_botec && make && echo
|
2023-07-22 19:49:00 +00:00
|
|
|
cd examples/03_gcc_nested_function && make && echo
|
|
|
|
cd examples/04_sample_from_cdf_simple && make && echo
|
|
|
|
cd examples/05_sample_from_cdf_beta && make && echo
|
2023-07-23 08:10:15 +00:00
|
|
|
cd examples/06_gamma_beta && make && echo
|
2023-07-23 17:11:25 +00:00
|
|
|
cd examples/07_ci_beta && make && echo
|
2023-11-18 21:07:12 +00:00
|
|
|
cd examples/08_nuclear_war && make && echo
|
|
|
|
cd examples/09_burn_10kg_fat && make && echo
|
|
|
|
cd examples/10_nuclear_recovery && make && echo
|
|
|
|
cd examples/11_algebra && make && echo
|
|
|
|
cd examples/12_algebra_and_conversion && make && echo
|
|
|
|
cd examples/13_ergonomic_algebra && make && echo
|
|
|
|
cd examples/14_twitter_thread_example && make && echo
|
|
|
|
cd examples/15_plotting-scratchpad && make && echo
|
|
|
|
cd examples/16_100_lognormal_samples && make && echo
|
|
|
|
|
|
|
|
format-examples:
|
|
|
|
cd examples/01_one_sample && make format && echo
|
|
|
|
cd examples/02_many_samples_time_to_botec && make format && echo
|
|
|
|
cd examples/03_gcc_nested_function && make format && echo
|
|
|
|
cd examples/04_sample_from_cdf_simple && make format && echo
|
|
|
|
cd examples/05_sample_from_cdf_beta && make format && echo
|
|
|
|
cd examples/06_gamma_beta && make format && echo
|
|
|
|
cd examples/07_ci_beta && make format && echo
|
|
|
|
cd examples/08_nuclear_war && make format && echo
|
|
|
|
cd examples/09_burn_10kg_fat && make format && echo
|
|
|
|
cd examples/10_nuclear_recovery && make format && echo
|
|
|
|
cd examples/11_algebra && make format && echo
|
|
|
|
cd examples/12_algebra_and_conversion && make format && echo
|
|
|
|
cd examples/13_ergonomic_algebra && make format && echo
|
|
|
|
cd examples/14_twitter_thread_example && make format && echo
|
|
|
|
cd examples/15_plotting-scratchpad && make format && echo
|
|
|
|
cd examples/16_100_lognormal_samples && make format && echo
|
2023-07-23 10:44:16 +00:00
|
|
|
|
|
|
|
format: squiggle.c squiggle.h
|
|
|
|
$(FORMATTER) squiggle.c
|
|
|
|
$(FORMATTER) squiggle.h
|
|
|
|
|
2023-08-19 17:18:02 +00:00
|
|
|
lint:
|
|
|
|
clang-tidy squiggle.c -- -lm
|
2023-11-18 21:07:12 +00:00
|
|
|
clang-tidy extra.c -- -lm
|