openssl/doc/life-cycles/Makefile
Pauli 4aac71f705 doc: add life-cycle source files
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14522)
2021-03-26 18:21:36 +10:00

27 lines
555 B
Makefile

GRAPHS=cipher.dot digest.dot kdf.dot mac.dot pkey.dot rand.dot
IMAGES=
all: png txt
png: $(subst .dot,.png,$(GRAPHS))
txt: $(subst .dot,.txt,$(GRAPHS))
@echo
@echo Remember to check and manually fix the mistakes before merging
@echo into the man pages.
@echo
# for the dot program:
# sudo apt install graphviz
%.png: %.dot
dot -Tpng -O $<
@mv $<.png $@
# for the graph-easy program:
# sudo apt install cpanminus
# sudo cpanm Graph::Easy
%.txt: %.dot
graph-easy --from=dot --as_ascii < $< > $@
clean:
rm -f $(wildcard *.png) $(wildcard *.txt)