add pandoc to makefile to generate html from markdown
This commit is contained in:
parent
9d896d5c3a
commit
c4bc4eafc1
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,3 +13,5 @@ build/
|
|||||||
|
|
||||||
# visual code
|
# visual code
|
||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
|
readme.html
|
||||||
|
19
Makefile
19
Makefile
@ -1,3 +1,5 @@
|
|||||||
|
.PHONY: cryptomain.ex crypt.ex decrypt.ex
|
||||||
|
|
||||||
BIN_PATH=./bin
|
BIN_PATH=./bin
|
||||||
LIB_PATH=./lib
|
LIB_PATH=./lib
|
||||||
OBJ_PATH=./obj
|
OBJ_PATH=./obj
|
||||||
@ -6,8 +8,9 @@ EXEC=$(BIN_PATH)/cryptomain.ex
|
|||||||
SRC=main.cpp
|
SRC=main.cpp
|
||||||
JSON_CPP=$(OBJ_PATH)/jsoncpp.o
|
JSON_CPP=$(OBJ_PATH)/jsoncpp.o
|
||||||
|
|
||||||
|
cryptomain.ex: $(EXEC)
|
||||||
|
|
||||||
# merge crypt and decrypt binary into cryptomain
|
# merge crypt and decrypt binary into cryptomain
|
||||||
cryptomain.ex:
|
|
||||||
$(EXEC): $(SRC) $(JSON_CPP)
|
$(EXEC): $(SRC) $(JSON_CPP)
|
||||||
@echo "compilation de aes"
|
@echo "compilation de aes"
|
||||||
@g++ -Wall -Wextra -ggdb -o $(EXEC) $(SRC) $(JSON_CPP) -lcrypto --std=c++14
|
@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_CRYPT=mainCrypt.cpp
|
||||||
SRC_DECRYPT=mainDecrypt.cpp
|
SRC_DECRYPT=mainDecrypt.cpp
|
||||||
|
|
||||||
crypt.ex:
|
crypt.ex: $(EXEC_CRYPT)
|
||||||
|
decrypt.ex: $(EXEC_DECRYPT)
|
||||||
|
|
||||||
$(EXEC_CRYPT): $(SRC_CRYPT) $(JSON_CPP) aes.hpp
|
$(EXEC_CRYPT): $(SRC_CRYPT) $(JSON_CPP) aes.hpp
|
||||||
@echo "compilation de crypt.ex"
|
@echo "compilation de crypt.ex"
|
||||||
@g++ -Wall -Wextra -ggdb -o $(EXEC_CRYPT) $(SRC_CRYPT) $(JSON_CPP) -lcrypto --std=c++14
|
@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
|
$(EXEC_DECRYPT): $(SRC_DECRYPT) $(JSON_CPP) aes.hpp
|
||||||
@echo "compilation de decrypt.ex"
|
@echo "compilation de decrypt.ex"
|
||||||
@g++ -Wall -Wextra -ggdb -o $(EXEC_DECRYPT) $(SRC_DECRYPT) $(JSON_CPP) -lcrypto --std=c++14
|
@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/*.enc
|
||||||
@rm -f data/*.dec
|
@rm -f data/*.dec
|
||||||
@rm -f data/*.key
|
@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
|
||||||
|
1120
README.html
1120
README.html
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,17 @@
|
|||||||
this repository contains 3 mains :
|
---
|
||||||
|
author: Antoine Roux <antoinroux@hotmail.fr>
|
||||||
|
date: 2020-04-27T02:17:42+02:00
|
||||||
|
title: "cryptomain.ex"
|
||||||
|
subtitle: "aes crypt / decrypt"
|
||||||
|
abstract: "allow to crypt and decrypt file with aes algorithm"
|
||||||
|
description: |
|
||||||
|
this repository contain aes c++ program
|
||||||
|
this program allow to crypt and decrypt file
|
||||||
|
lang: en-GB
|
||||||
|
---
|
||||||
|
|
||||||
|
# this repository contains 3 mains :
|
||||||
|
|
||||||
- crypto.ex use for test ( take a file, crypt and decrypt this file in one step )
|
- crypto.ex use for test ( take a file, crypt and decrypt this file in one step )
|
||||||
products a crypted and decrypted file.
|
products a crypted and decrypted file.
|
||||||
|
|
||||||
@ -9,3 +22,5 @@ this repository contains 3 mains :
|
|||||||
- decrypt.ex : allow to uncrypt a file from a crypted file and a json key file.
|
- decrypt.ex : allow to uncrypt a file from a crypted file and a json key file.
|
||||||
./decrypt.ex <FileToDecrypt> <aesKeyFile>
|
./decrypt.ex <FileToDecrypt> <aesKeyFile>
|
||||||
products the uncrypted file.
|
products the uncrypted file.
|
||||||
|
|
||||||
|
:smiley:
|
Loading…
Reference in New Issue
Block a user