Skip to content

Commit a90c5ae

Browse files
authored
Update Makefile
1 parent 55a5b8f commit a90c5ae

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@
33

44
SOURCES = src/main.c
55
TARGET = dist/chip.wasm
6-
testFileName = logic
6+
testFileName = logic
7+
testFolderName = test
8+
79
.PHONY: all
810
all: $(TARGET) dist/chip.json
911

1012
.PHONY: clean
1113
clean:
12-
rm -rf dist
14+
rm -rf dist ; \
15+
rm -rf $(testFolderName) ; \
1316

1417
dist:
1518
mkdir -p dist
@@ -23,7 +26,8 @@ dist/chip.json: dist chip.json
2326

2427
.PHONY: test
2528
test:
26-
cd test && arduino-cli sketch new $(testFileName) && arduino-cli compile -e -b arduino:avr:uno $(testFileName)
29+
mkdir -p $(testFolderName) ; \
30+
cd test && arduino-cli sketch new $(testFileName) && arduino-cli compile -e -b arduino:avr:uno $(testFileName) ; \
2731

2832

2933

0 commit comments

Comments
 (0)