-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
106 lines (67 loc) · 2.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
## Crée l'EAE dans multiples formats
# Variables
BOOKNAME = mon-EAE
MARKDOWNS = title.yml \
ressources.md \
00_identification_agent.md \
01_entete.md \
02_resume.md \
03_fiche-de-poste.md \
04_tenue-maitrise-du-poste.md \
05_appreciation_competences.md \
06_autoevaluation.md \
07_plan-action.md \
08_evolution-professionnelle.md \
09_synthese-evaluation.md \
10_avancement.md \
release.md \
gitlog.md
# Default targets
## all : Génère tous les formats supportés
all: html epub pdf docx
## clean : Delete all generated files
clean: gitlog_clean html_clean epub_clean pdf_clean docx_clean
# `make help` displays all lines beginning with two hash signs
help : Makefile
@sed -n 's/^##//p' $<
# Build targets
## gitlog : Genere historique git en markdown
gitlog:
gitchangelog > gitlog.rst
pandoc gitlog.rst -f rst -t markdown -o gitlog.md
gh changelog new
mv CHANGELOG.md release.md
sed -i 's/# Changelog/# Release/g' release.md
## gitlog_clean : Efface l'historique git en markdown
gitlog_clean:
rm gitlog.rst gitlog.md
## html : Generate an HTML file.
html: gitlog $(BOOKNAME).html
html_clean:
rm -f $(BOOKNAME).html
$(BOOKNAME).html:
pandoc -t html --section-divs --standalone -o $(BOOKNAME).html ${MARKDOWNS}
## epub : Generate an EPUB file.
epub: gitlog $(BOOKNAME).epub
epub_clean:
rm -f $(BOOKNAME).epub
$(BOOKNAME).epub:
pandoc --epub-metadata=title.yml --toc -o $(BOOKNAME).epub ${MARKDOWNS}
## pdf : Generate a PDF file.
pdf: gitlog $(BOOKNAME).pdf
pdf_clean:
rm -f $(BOOKNAME).pdf
$(BOOKNAME).pdf:
pandoc --toc --pdf-engine=lualatex -o $(BOOKNAME).pdf ${MARKDOWNS}
## docx : Generate a Word file.
docx: gitlog $(BOOKNAME).docx
docx_clean:
rm -f $(BOOKNAME).docx
$(BOOKNAME).docx:
pandoc --toc -o $(BOOKNAME).docx ${MARKDOWNS}
## gource : Build the movie of collaboration flow
gource: gource --title "Campagne EAE via opt-nc/template-eae" --camera-mode track --key -e 0.5 -o - |\ ✔ 1m 40s 12:32:52
ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast \
-pix_fmt yuv420p -crf 1 -threads 0 -bf 0 eae.mp4
# Actions that do not correspond to files
.PHONY: help gitlog html pdf docx epub html_clean pdf_clean docx_clean epub_clean