Skip to content

Commit

Permalink
Makefile: install Elixir from source
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Sep 4, 2024
1 parent fc3490b commit 1c915c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
project=scanf/config-files
elixir_repo_path=~/src/github.com/elixir-lang/elixir
PATH :=${HOME}/.local/bin:${PATH}

all:
ruby bin/run.rb
if [ ! -d "${HOME}/.cargo" ]; then ${MAKE} install_rust; fi
if [ ! -d "${HOME}/.nvm" ]; then ${MAKE} install_node; fi

install_elixir:
mkdir -pv ${elixir_repo_path}
ls ${elixir_repo_path} || git clone https://github.com/elixir-lang/elixir.git ${elixir_repo_path}
cd ${elixir_repo_path}
make -C ${elixir_repo_path} clean compile

install_rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

Expand Down

0 comments on commit 1c915c4

Please sign in to comment.