Skip to content

Commit

Permalink
build logic add-ons
Browse files Browse the repository at this point in the history
  • Loading branch information
Remus Lazar committed Jan 9, 2020
1 parent 84230d3 commit 6a18e76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/arduino/main/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
wifi_client_secrets.h
wifi_client_secrets.h
/build
6 changes: 5 additions & 1 deletion src/arduino/main/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ all: build

setup: arduino-dev-setup

clean:
rm -rf build

arduino-dev-setup: arduino_samd_platform arduino_libraries

arduino_samd_platform: $(ARDUINO_HARDWARE_DIR)/samd
Expand All @@ -19,4 +22,5 @@ $(ARDUINO_LIBRARIES_DIR)/%:
arduino-cli lib install $(notdir ${@})

build: setup
arduino-cli compile --fqbn $(ARDUINO_BOARD) main.ino
mkdir -p build
arduino-cli compile --fqbn $(ARDUINO_BOARD) -o build/main main.ino

0 comments on commit 6a18e76

Please sign in to comment.