From 1a7a0a4630057dfa5c56b68b94772a243d4c3842 Mon Sep 17 00:00:00 2001 From: Silver Kits Date: Thu, 8 Sep 2016 09:36:00 +0300 Subject: [PATCH] Do not remove placeholder in make clean target --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 93bc46b..4aa6af9 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,9 @@ $(TARGET): $(OBJCOPY) $(OBJCOPYARGS) $(ELF) $(TARGET) clean: - rm -f $(BINDIR)/* $(SRCDIR)/*.o +#Do not remove .placeholder in BINDIR + find $(BINDIR) -type f -not -name '.placeholder' -print0 | xargs -0 rm -f -- + rm -f $(SRCDIR)/*.o install: $(AVRDUDE) $(AVRDUDEARGS) -U flash:w:$(TARGET)