-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·48 lines (39 loc) · 1.6 KB
/
Makefile
File metadata and controls
executable file
·48 lines (39 loc) · 1.6 KB
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
# simple Makefile to compile the latex
PROJ=`cd ../; basename \`pwd\``
DOC=LLM_AI_Security_and_Governance_Checklist
FILES=$(DOC).tex
# create a random password
# requires pwgen
PW!=pwgen -n1
# create a PDF
pdf: $(FILES) distclean
# lualtex needs to run iteratively so it can process all references
pdflatex $(DOC).tex
pdflatex $(DOC).tex
pdflatex $(DOC).tex
# now clean up the intermediate steps
make clean
# create an encrypted PDF
# requires pdftk (apt-get install pdftk-java)
crypt: pdf
pdftk $(DOC).pdf output $(DOC).encrypted.pdf user_pw $(PW) allow allfeatures
echo "Encryption password" is $(PW)
# create an RTF file for folks that want "Word" versions
rtf: $(FILES)
latex2rtf $(DOC)
# clear out all the intermediate cruft from a build, but leave the PDFs
clean:
rm -f *.tmp *.out *.aux *.idx *.log *.ilg *.xref *.lg \
*.toc *.ind *.4og *.4ct *.4tc *.idv *.lot *.lov *.lltr *.lstr \
*.ptc *.dvi *.tv *.vrb *.hv *.hst *.ver *.mv *.lv *.odt $(DOC).synctex.gz \
*.rtf *.cg *.cp *.cpc *.dd *.sc *.xml *.bcf *.loc *.tdo *.4o* $(DOC).txt tex4ht.env \
*.fdb_latexmk *.fls $(DOC).gz > /dev/null 2>&1
-find . -name "*.aux" -exec rm {} \;
# clear out all the intermediate cruft and also any PDFs
distclean:
-rm -f $(DOC).pdf $(DOC).encrypted.pdf *.tmp *.out *.aux *.idx *.log *.ilg *.xref *.lg \
*.toc *.ind *.4og *.4ct *.4tc *.idv *.lot *.lov *.lltr *.lstr \
*.ptc *.dvi *.tv *.vrb *.hv *.hst *.ver *.mv *.lv *.odt $(DOC).synctex.gz \
*.rtf *.cg *.cp *.cpc *.dd *.sc *.xml *.bcf *.loc *.tdo *.4o* $(DOC).txt tex4ht.env \
*.fdb_latexmk *.fls $(DOC).gz > /dev/null 2>&1
-find . -name "*.aux" -exec rm {} \;