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