From 64fa2f30abf3697f310eb962d1596dc1ff11b00a Mon Sep 17 00:00:00 2001 From: Tijmen van Nesselrooij Date: Wed, 1 May 2019 21:29:32 +0200 Subject: [PATCH] Add rebuild target makefile --- test/makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/makefile b/test/makefile index 1522c56..1b27290 100644 --- a/test/makefile +++ b/test/makefile @@ -1,10 +1,10 @@ CC = g++ -CFLAGS = -std=c++17 -Wall +CFLAGS = -std=c++17 -Wall -g CPPS = $(wildcard *.cpp) EXES = $(patsubst %.cpp, %.out, $(CPPS)) -.PHONY: all clean +.PHONY: all clean rebuild %.out: %.cpp $(CC) $(CFLAGS) $< -o $@ @@ -13,4 +13,6 @@ all: $(EXES) clean: -rm *.o - -rm *.out \ No newline at end of file + -rm *.out + +rebuild: clean all \ No newline at end of file