forked from ESultanik/PDFGitPolyglot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile_CyberSec
53 lines (42 loc) · 1.24 KB
/
Makefile_CyberSec
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
ifeq ($(shell uname), Darwin)
CC=clang
CXX=clang++
AR=ar
endif
.PHONY : all
all : release
release : PDFGitPolyglot.pdf
rm resume_cybersec*[!.tex]
rm *.aux
rm *.log
rm *.out
rm -rf __pycache__
mkdir -p release
mv PDFGitPolyglot.pdf release/CJ_May_Resume_CyberSec.pdf
.PHONY : local-clean
local-clean :
rm -f PDFGitPolyglot.pdf resume_cybersec.pdf resume_cybersec.log resume_cybersec.aux *~
.PHONY : clean
clean : git-submodule local-clean
$(MAKE) -C git clean
.PHONY : git-submodule
git-submodule :
git submodule init
git submodule update --recursive
git/configure : | git-submodule
$(MAKE) -C git configure
cd git && ./configure
git/git : | git/configure
$(MAKE) CC=$(CC) CXX=$(CXX) AR=$(AR) -C git
resume_cybersec.pdf : resume_cybersec.tex
pdflatex resume_cybersec
pdflatex resume_cybersec
%_small.jpg : %.jpg
convert $< -define jpeg:extent=63kb $@
%_injected.pdf %.pdf.block_offsets : %.pdf fix_oversize_pdf.py
./fix_oversize_pdf.py $*.pdf $*_injected.pdf
PDFGitPolyglot.pdf : resume_cybersec_injected.pdf resume_cybersec.pdf.block_offsets git/git update_deflate_headers.py
./make_polyglot.sh resume_cybersec_injected.pdf $@
mv $@ [email protected]
./update_deflate_headers.py [email protected] $@ resume_cybersec.pdf.block_offsets