add pandoc to makefile to generate html from markdown

This commit is contained in:
Antoine 2020-04-27 02:46:05 +02:00
parent 9d896d5c3a
commit c4bc4eafc1
4 changed files with 34 additions and 1124 deletions

2
.gitignore vendored
View File

@ -13,3 +13,5 @@ build/
# visual code
.vscode/
readme.html

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

@ -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 )
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 <FileToDecrypt> <aesKeyFile>
products the uncrypted file.
:smiley: