1 1.1 christos GRAPHS=cipher.dot digest.dot kdf.dot mac.dot pkey.dot rand.dot 2 1.1 christos IMAGES= 3 1.1 christos 4 1.1 christos all: png txt 5 1.1 christos png: $(subst .dot,.png,$(GRAPHS)) 6 1.1 christos txt: $(subst .dot,.txt,$(GRAPHS)) 7 1.1 christos @echo 8 1.1 christos @echo Remember to check and manually fix the mistakes before merging 9 1.1 christos @echo into the man pages. 10 1.1 christos @echo 11 1.1 christos 12 1.1 christos # for the dot program: 13 1.1 christos # sudo apt install graphviz 14 1.1 christos %.png: %.dot 15 1.1 christos dot -Tpng -O $< 16 1.1 christos @mv $<.png $@ 17 1.1 christos 18 1.1 christos # for the graph-easy program: 19 1.1 christos # sudo apt install cpanminus 20 1.1 christos # sudo cpanm Graph::Easy 21 1.1 christos %.txt: %.dot 22 1.1 christos graph-easy --from=dot --as_ascii < $< > $@ 23 1.1 christos 24 1.1 christos clean: 25 1.1 christos rm -f $(wildcard *.png) $(wildcard *.txt) 26 1.1 christos 27