From e2dc1f1c1d343829063be7b0a14b27423449cea0 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Sat, 16 Feb 2019 10:41:26 +0100 Subject: [PATCH] Update clean rule in makefile to clean all targets --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c4888af..f53e5da 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,8 @@ CC = $(CROSS_COMPILE)gcc CFLAGS += -Wall -Wextra -O2 -all: lpcisp lpcprog lpc_binary_check +ALL_TARGETS = lpcisp lpcprog lpc_binary_check +all: $(ALL_TARGETS) OBJDIR = objs @@ -49,5 +50,4 @@ ${OBJDIR}/%.o: %.c clean: rm -f ${OBJDIR}/* mrproper: clean - rm -f lpcisp - rm -f lpcprog + rm -f $(ALL_TARGETS) -- 2.43.0