-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (26 loc) · 823 Bytes
/
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
UPDATE_ENV = PATH=$(PATH):$(dir $(wildcard $(HOME)/Library/Python/*/bin/platformio))
.PHONY: all
all: compile
.PHONY: compile
compile: deps
@#cd Marlin && git checkout bugfix-JyersUI && git pull
cp ender3v2-config/*.h ./Marlin/Marlin/
cd Marlin; $(UPDATE_ENV) platformio run --target clean
cd Marlin; $(UPDATE_ENV) platformio run
cp Marlin/.pio/build/STM32F103RET6_creality_maple/*.bin ender3v2-config/image.bin
.PHONY: deps
deps: Marlin/.git .platformio
.platformio:
pip install -U https://github.com/platformio/platformio-core/archive/develop.zip
$(UPDATE_ENV) platformio update
touch .platformio
Marlin/.git:
git submodule sync --recursive
git submodule update --init --recursive
.PHONY: nix
nix:
nix-shell --run 'make all'
.PHONY: clean
clean:
rm -f .venv-nix .platformio
#cd Marlin; git clean -fxd