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