xref: /freebsd/crypto/openssl/doc/life-cycles/Makefile (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1*b077aed3SPierre ProncheryGRAPHS=cipher.dot digest.dot kdf.dot mac.dot pkey.dot rand.dot
2*b077aed3SPierre ProncheryIMAGES=
3*b077aed3SPierre Pronchery
4*b077aed3SPierre Proncheryall: png txt
5*b077aed3SPierre Proncherypng: $(subst .dot,.png,$(GRAPHS))
6*b077aed3SPierre Proncherytxt: $(subst .dot,.txt,$(GRAPHS))
7*b077aed3SPierre Pronchery	@echo
8*b077aed3SPierre Pronchery	@echo Remember to check and manually fix the mistakes before merging
9*b077aed3SPierre Pronchery	@echo into the man pages.
10*b077aed3SPierre Pronchery	@echo
11*b077aed3SPierre Pronchery
12*b077aed3SPierre Pronchery# for the dot program:
13*b077aed3SPierre Pronchery#	sudo apt install graphviz
14*b077aed3SPierre Pronchery%.png: %.dot
15*b077aed3SPierre Pronchery	dot -Tpng -O $<
16*b077aed3SPierre Pronchery	@mv $<.png $@
17*b077aed3SPierre Pronchery
18*b077aed3SPierre Pronchery# for the graph-easy program:
19*b077aed3SPierre Pronchery#	sudo apt install cpanminus
20*b077aed3SPierre Pronchery#	sudo cpanm Graph::Easy
21*b077aed3SPierre Pronchery%.txt: %.dot
22*b077aed3SPierre Pronchery	graph-easy --from=dot --as_ascii < $< > $@
23*b077aed3SPierre Pronchery
24*b077aed3SPierre Proncheryclean:
25*b077aed3SPierre Pronchery	rm -f $(wildcard *.png) $(wildcard *.txt)
26*b077aed3SPierre Pronchery
27