-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
33 lines (21 loc) · 883 Bytes
/
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
DEPS := doc/after-bb.png doc/edit-magic.png doc/running-bb.png doc/chinook-diff.png doc/find-magic.png doc/win-mkfile.png doc/decrypted.png doc/hexeditor.png doc/decrypt.png doc/no-magic.png
RST2HTML_FLAGS =
RST2PDF_FLAGS =
RINHO_FLAGS =
all: README.pdf README.html
README.pdf: $(DEPS)
README.html: $(DEPS)
%.html: %.rst
rst2html $(RST2HTML_FLAGS) $< $@
%.pdf: %.rst
command -v rinoh && rinoh $(RINHO_FLAGS) $< || rst2pdf $(RST2PDF_FLAGS) $< $@
%.png: %.svg
rsvg-convert $< > $@
README := 2023-12-srlabs-black-basta-buster-readme.pdf
REPORT := 2023-08-srlabs-Black-Basta-Buster-report.pdf
GIT_ZIP := 2023-12-srlabs-black-basta-buster-v3.zip
$(GIT_ZIP): .git/HEAD $(REPORT)
git archive --format=zip --output=$@ HEAD
zip -u ./$@ $(README)
2023-10-srlabs-black-basta-bundle.zip: $(GIT_ZIP) $(REPORT) [email protected]
zip -u ./$@ $^