-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (34 loc) · 1.02 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
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
install_wasmtime:
curl https://wasmtime.dev/install.sh -sSf | bash
install_node:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
run: all
desktop: run
bin/setup-desktop.bash
copy:
ruby bin/copy_files.rb
fmt:
rubocop --fix-layout bin/*.rb
docker:
docker build -t ${project} .
docker_deploy: docker docker_push
echo "Pushed to docker"
docker_run: docker
docker run -t -i ${project} /bin/bash
docker_push:
docker push ${project}
.PHONY: all