blob: 4a727804acd091a52fc3add3bceb7958edfda9ce (
plain)
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
|
# compile flags
OUT = cv.pdf
ARGS = -Tpdf -m cv
# redact sensitive info
REDACTED_VARS = ad r1 r2
REDACTED_MSG = [redacted-sensitive]
REDACTED_ARGS = $(addprefix -d, $(addsuffix =$(REDACTED_MSG), $(REDACTED_VARS)))
# by default, make redacted version
default: redacted
.PHONY: redacted full clean
# use redacted args
redacted: cv.trf
groff $(ARGS) $(REDACTED_ARGS) $^ > $(OUT)
# include sensitive file
full: sens.trf cv.trf
groff $(ARGS) $^ > $(OUT)
# remove created files
clean:
rm $(OUT)
|