Makefile 555 B

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