Makefile 1018 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. all: docs
  2. %.eps: %.fig
  3. fig2dev -L eps $*.fig $*.eps
  4. %.png: %.fig
  5. fig2dev -L png -m 3 $*.fig | pngtopnm | pnmscale 0.4 | pnmtopng \
  6. > $*.png
  7. %.png: %.dot
  8. dot $*.dot -Tpng -o $*.png
  9. %.eps: %.dot
  10. dot $*.dot -Tps -o $*.eps
  11. _wpa_supplicant.png: wpa_supplicant.png
  12. cp $< $@
  13. _wpa_supplicant.eps: wpa_supplicant.eps
  14. cp $< $@
  15. docs-pics: wpa_supplicant.png wpa_supplicant.eps hostapd.png hostapd.eps p2p_sm.png p2p_sm.eps p2p_arch.png p2p_arch.eps p2p_arch2.png p2p_arch2.eps _wpa_supplicant.png _wpa_supplicant.eps
  16. docs: docs-pics
  17. (cd ..; doxygen doc/doxygen.conf; cd doc)
  18. $(MAKE) -C latex
  19. cp latex/refman.pdf wpa_supplicant-devel.pdf
  20. html: docs-pics
  21. (cd ..; doxygen doc/doxygen.conf; cd doc)
  22. clean:
  23. rm -f *~
  24. rm -f wpa_supplicant.eps wpa_supplicant.png
  25. rm -f _wpa_supplicant.png _wpa_supplicant.eps
  26. rm -f hostapd.eps hostapd.png
  27. rm -f p2p_sm.eps p2p_sm.png
  28. rm -f p2p_arch.eps p2p_arch.png
  29. rm -f p2p_arch2.eps p2p_arch2.png
  30. rm -f doxygen.warnings
  31. rm -rf html latex
  32. rm -f wpa_supplicant-devel.pdf