diff --git a/.gitignore b/.gitignore
index 96d95e3..33a177b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,5 @@ build/
# visual code
.vscode/
+
+readme.html
diff --git a/Makefile b/Makefile
index d66fef8..0bac9f6 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+.PHONY: cryptomain.ex crypt.ex decrypt.ex
+
BIN_PATH=./bin
LIB_PATH=./lib
OBJ_PATH=./obj
@@ -6,8 +8,9 @@ EXEC=$(BIN_PATH)/cryptomain.ex
SRC=main.cpp
JSON_CPP=$(OBJ_PATH)/jsoncpp.o
+cryptomain.ex: $(EXEC)
+
# merge crypt and decrypt binary into cryptomain
-cryptomain.ex:
$(EXEC): $(SRC) $(JSON_CPP)
@echo "compilation de aes"
@g++ -Wall -Wextra -ggdb -o $(EXEC) $(SRC) $(JSON_CPP) -lcrypto --std=c++14
@@ -25,12 +28,13 @@ EXEC_CRYPT=$(BIN_PATH)/crypt.ex
SRC_CRYPT=mainCrypt.cpp
SRC_DECRYPT=mainDecrypt.cpp
-crypt.ex:
+crypt.ex: $(EXEC_CRYPT)
+decrypt.ex: $(EXEC_DECRYPT)
+
$(EXEC_CRYPT): $(SRC_CRYPT) $(JSON_CPP) aes.hpp
@echo "compilation de crypt.ex"
@g++ -Wall -Wextra -ggdb -o $(EXEC_CRYPT) $(SRC_CRYPT) $(JSON_CPP) -lcrypto --std=c++14
-decrypt.ex:
$(EXEC_DECRYPT): $(SRC_DECRYPT) $(JSON_CPP) aes.hpp
@echo "compilation de decrypt.ex"
@g++ -Wall -Wextra -ggdb -o $(EXEC_DECRYPT) $(SRC_DECRYPT) $(JSON_CPP) -lcrypto --std=c++14
@@ -55,3 +59,12 @@ cleanD:
@rm -f data/*.enc
@rm -f data/*.dec
@rm -f data/*.key
+
+doc:
+ @pandoc -s -f markdown+emoji -t html \
+ --shift-heading-level-by=2 \
+ --wrap=preserve \
+ --toc \
+ --toc-depth=2 \
+ --highlight-style=tango \
+ -o readme.html readme.md
diff --git a/README.html b/README.html
deleted file mode 100644
index 548d68e..0000000
--- a/README.html
+++ /dev/null
@@ -1,1120 +0,0 @@
-
this repository contains 3 mains :
-- crypto.ex use for test ( take a file, crypt and decrypt this file in one step )
- products a crypted and decrypted file.
-
--
-
crypt.ex : allow to crypt a file with aes algorithms
- ./crypt.ex
- products the crypted file and a json file which contain aes key and aes IV key.
-
--
-
decrypt.ex : allow to uncrypt a file from a crypted file and a json key file.
- ./decrypt.ex
- products the uncrypted file.
-
-
\ No newline at end of file
diff --git a/README.md b/readme.md
similarity index 54%
rename from README.md
rename to readme.md
index 5bb820e..a5b820b 100644
--- a/README.md
+++ b/readme.md
@@ -1,4 +1,17 @@
-this repository contains 3 mains :
+---
+author: Antoine Roux