From a48e96004ef36412bc8664bea3711f53d84a750d Mon Sep 17 00:00:00 2001 From: Antoine Date: Mon, 27 Apr 2020 23:23:08 +0200 Subject: [PATCH] add *.hpp into Makefile as exec target dependency --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 0bac9f6..207feaf 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ JSON_CPP=$(OBJ_PATH)/jsoncpp.o cryptomain.ex: $(EXEC) # merge crypt and decrypt binary into cryptomain -$(EXEC): $(SRC) $(JSON_CPP) +$(EXEC): $(SRC) *.hpp $(JSON_CPP) @echo "compilation de aes" @g++ -Wall -Wextra -ggdb -o $(EXEC) $(SRC) $(JSON_CPP) -lcrypto --std=c++14 @@ -31,11 +31,11 @@ SRC_DECRYPT=mainDecrypt.cpp crypt.ex: $(EXEC_CRYPT) decrypt.ex: $(EXEC_DECRYPT) -$(EXEC_CRYPT): $(SRC_CRYPT) $(JSON_CPP) aes.hpp +$(EXEC_CRYPT): $(SRC_CRYPT) *.hpp $(JSON_CPP) @echo "compilation de crypt.ex" @g++ -Wall -Wextra -ggdb -o $(EXEC_CRYPT) $(SRC_CRYPT) $(JSON_CPP) -lcrypto --std=c++14 -$(EXEC_DECRYPT): $(SRC_DECRYPT) $(JSON_CPP) aes.hpp +$(EXEC_DECRYPT): $(SRC_DECRYPT) *.hpp $(JSON_CPP) @echo "compilation de decrypt.ex" @g++ -Wall -Wextra -ggdb -o $(EXEC_DECRYPT) $(SRC_DECRYPT) $(JSON_CPP) -lcrypto --std=c++14