diff options
author | Oscar Najera <hi@oscarnajera.com> | 2022-12-09 14:17:38 +0100 |
---|---|---|
committer | Oscar Najera <hi@oscarnajera.com> | 2022-12-09 14:20:01 +0100 |
commit | f414e9a4a26d74402a569ddcb1ba964394267899 (patch) | |
tree | a477944de26ca35b26e27d14232882ced23d9d0d /AoC2022/makefile | |
parent | 7e207bf01575550fcae82103d1e6573d7b7b5216 (diff) | |
download | scratch-f414e9a4a26d74402a569ddcb1ba964394267899.tar.gz scratch-f414e9a4a26d74402a569ddcb1ba964394267899.tar.bz2 scratch-f414e9a4a26d74402a569ddcb1ba964394267899.zip |
Unify advent of code makefile
now call from emacs compile
make -C .. <language>
Diffstat (limited to 'AoC2022/makefile')
-rw-r--r-- | AoC2022/makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/AoC2022/makefile b/AoC2022/makefile new file mode 100644 index 0000000..968dbff --- /dev/null +++ b/AoC2022/makefile @@ -0,0 +1,23 @@ +## +# Project Title +# +# @file +# @version 0.1 + +clean: + find . -name solver | xargs rm -vf + + +emacs: ${PWD}/solver.el + cd ${PWD} && emacs -batch -l ert -l solver.el -f ert-run-tests-batch-and-exit + +lisp: ${PWD}/solver.lisp + cd ${PWD} && sbcl --load ~/.sbclrc --script solver.lisp + +rust: ${PWD}/solver.rs + cd ${PWD} && rustc solver.rs -o /tmp/solver && /tmp/solver + +elixir: ${PWD}/solver.exs + cd ${PWD} && elixir solver.exs + +# end |