summaryrefslogtreecommitdiffstats
path: root/doc/life-cycles/Makefile
blob: 4c12558e63df4b2fdf9f724d2f4ed4bfa0c64578 (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
26
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)