From: Nathael Pajani Date: Sat, 16 Feb 2019 09:41:26 +0000 (+0100) Subject: Update clean rule in makefile to clean all targets X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=e2dc1f1c1d343829063be7b0a14b27423449cea0;p=soft%2Ftools%2Flpctools Update clean rule in makefile to clean all targets --- 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)