forked from ESultanik/PDFGitPolyglot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile_DevSecOps
53 lines (42 loc) · 1.25 KB
/
Makefile_DevSecOps
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_devsecops*[!.tex]
rm *.aux
rm *.log
rm *.out
rm -rf __pycache__
mkdir -p release
mv PDFGitPolyglot.pdf release/CJ_May_Resume_DevSecOps.pdf
.PHONY : local-clean
local-clean :
rm -f PDFGitPolyglot.pdf resume_devsecops.pdf resume_devsecops.log resume_devsecops.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_devsecops.pdf : resume_devsecops.tex
pdflatex resume_devsecops
pdflatex resume_devsecops
%_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_devsecops_injected.pdf resume_devsecops.pdf.block_offsets git/git update_deflate_headers.py
./make_polyglot.sh resume_devsecops_injected.pdf $@
mv $@ $@.polyglot
./update_deflate_headers.py $@.polyglot $@ resume_devsecops.pdf.block_offsets
rm $@.polyglot