aboutsummaryrefslogtreecommitdiff
path: root/robot/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-05-24 22:06:09 +0200
committerlonkaars <loek@pipeframe.xyz>2022-05-24 22:06:09 +0200
commitb0a905b14ff90f2240e5aa2928d5329d8494cb46 (patch)
tree51c488dc72f0ba50b666d57eea6a23f8c8a731b7 /robot/makefile
parent937a3a736aaf2c468c8c8e8dbc7963a87eae890f (diff)
fix `make clean`
Diffstat (limited to 'robot/makefile')
-rw-r--r--robot/makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/robot/makefile b/robot/makefile
index cd5c032..6de886c 100644
--- a/robot/makefile
+++ b/robot/makefile
@@ -10,6 +10,8 @@ PORT ?= /dev/ttyACM0
CFLAGS=-g -Wall $(DEVICE_SPECIFIC_CFLAGS) -Os
LDFLAGS=-Wl,-gc-sections -Wl,-relax
+all: $(if $(SIM), a.out, out.hex)
+
SOURCES := $(filter-out sim.c, $(wildcard *.c))
HEADERS := $(filter-out sim.h, $(wildcard *.h))
include ../shared/makefile
@@ -32,9 +34,7 @@ OBJ2HEX=$(PREFIX)objcopy
BUILD_STR=$(shell git update-index -q --refresh; git describe --tags --dirty='*' --broken='x' | cut -c1-20)
CFLAGS += -DW2_BUILD_STR="$(BUILD_STR)"
-all: $(if $(SIM), a.out, out.hex)
-
-clean:
+clean::
rm -f *.o out.hex a.out
a.out: $(OBJECTS)