From f9e253963bdf6c1965f80db25c5ba752d79d17bc Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Fri, 29 Jun 2012 15:30:24 -0300 Subject: [PATCH] tools/Makefile: add targets "clean" and "spotless" --- tools/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 15604d7..9c3efc6 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -25,7 +25,7 @@ LDLIBS = -L../../ben-wpan/tools/lib -latrf \ OBJS = antorcha.o hash.o $(if $(NOGFX),, plot.o) -.PHONY: all ben update ping off +.PHONY: all ben clean spotless update ping off all: $(MAIN) @@ -35,6 +35,12 @@ ben: $(MAIN): $(OBJS) $(CC) $(CFLAGS) -o $@ $(OBJS) $(LDLIBS) +clean: + rm -f $(OBJS) + +spotless: clean + rm -f $(MAIN) + update: ./antorcha -F ../fw/antorcha.bin