From bfd60ff16634918f75ca36201636dabf29648532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Garcia?= Date: Tue, 8 Mar 2016 00:37:05 -0300 Subject: [PATCH] Force Makefile to recompile all *.o on any .h change --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3fbdf04..ead536f 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ CFLAGS=-g -Wall -pedantic #-DDEBUG all: $(EXE) $(EXE): $(OBJ); $(CXX) $(CFLAGS) $(OBJ) -o $(EXE) -%.o: %.cpp %.h; $(CXX) $(CFLAGS) -c $< -o $@ $(DEBUG) +%.o: %.cpp *.h; $(CXX) $(CFLAGS) -c $< -o $@ $(DEBUG) again: clean all