From ff5e23ff66e223cf8c4bb02f9772bfca908bf0f1 Mon Sep 17 00:00:00 2001 From: LelixSuper Date: Fri, 14 Apr 2017 15:52:52 +0200 Subject: [PATCH 1/2] Fix delete command in Makefile --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0b255c2..dbda2d6 100644 --- a/Makefile +++ b/Makefile @@ -29,5 +29,4 @@ example3: example3.o tinyexpr.o $(CC) -c $(CCFLAGS) $< -o $@ clean: - rm *.o - rm *.exe + rm -f *.o *.exe example example2 example3 bench test_pr test From 310d61f45b6e1efd552035bd5458ade0303a90b4 Mon Sep 17 00:00:00 2001 From: LelixSuper Date: Fri, 14 Apr 2017 15:53:15 +0200 Subject: [PATCH 2/2] Add .PHONY target in Makefile --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index dbda2d6..cc9765c 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ CCFLAGS = -ansi -Wall -Wshadow -O2 LFLAGS = -lm +.PHONY = all clean all: test test_pr bench example example2 example3