After compiling several *.c and *.h files using make, I cleaned up the object files using make clean. However I don't know how to remove the executable.
my makefile code -->
CC=gcc
CFLAGS=-I.
mp1: main.o downloader.o json.o
$(CC) -o mp1 main.o downloader.o json.o -I.
.PHONY : clean
clean :
-rm *.o $(objects)
make cleanwill runrm *.o $(objects), which doesn't clean the executable (assuming that the executable ismp1and not in$(objects)). – David Foerster Jun 29 '16 at 05:15