Makefile 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. include ../config.mk
  2. .PHONY : all clean install uninstall dist
  3. MANPAGES = \
  4. libmosquitto.3 \
  5. mosquitto-tls.7 \
  6. mosquitto.8 \
  7. mosquitto.conf.5 \
  8. mosquitto_ctrl.1 \
  9. mosquitto_ctrl_dynsec.1 \
  10. mosquitto_passwd.1 \
  11. mosquitto_pub.1 \
  12. mosquitto_rr.1 \
  13. mosquitto_sub.1 \
  14. mqtt.7
  15. all : ${MANPAGES}
  16. clean :
  17. reallyclean : clean
  18. -rm -f *.orig
  19. -rm -f ${MANPAGES}
  20. dist : ${MANPAGES}
  21. install :
  22. $(INSTALL) -d "${DESTDIR}$(mandir)/man8"
  23. $(INSTALL) -m 644 mosquitto.8 "${DESTDIR}${mandir}/man8/mosquitto.8"
  24. $(INSTALL) -d "${DESTDIR}$(mandir)/man5"
  25. $(INSTALL) -m 644 mosquitto.conf.5 "${DESTDIR}${mandir}/man5/mosquitto.conf.5"
  26. $(INSTALL) -d "${DESTDIR}$(mandir)/man1"
  27. $(INSTALL) -m 644 mosquitto_ctrl.1 "${DESTDIR}${mandir}/man1/mosquitto_ctrl.1"
  28. $(INSTALL) -m 644 mosquitto_ctrl_dynsec.1 "${DESTDIR}${mandir}/man1/mosquitto_ctrl_dynsec.1"
  29. $(INSTALL) -m 644 mosquitto_passwd.1 "${DESTDIR}${mandir}/man1/mosquitto_passwd.1"
  30. $(INSTALL) -m 644 mosquitto_pub.1 "${DESTDIR}${mandir}/man1/mosquitto_pub.1"
  31. $(INSTALL) -m 644 mosquitto_sub.1 "${DESTDIR}${mandir}/man1/mosquitto_sub.1"
  32. $(INSTALL) -m 644 mosquitto_rr.1 "${DESTDIR}${mandir}/man1/mosquitto_rr.1"
  33. $(INSTALL) -d "${DESTDIR}$(mandir)/man7"
  34. $(INSTALL) -m 644 mqtt.7 "${DESTDIR}${mandir}/man7/mqtt.7"
  35. $(INSTALL) -m 644 mosquitto-tls.7 "${DESTDIR}${mandir}/man7/mosquitto-tls.7"
  36. $(INSTALL) -d "${DESTDIR}$(mandir)/man3"
  37. $(INSTALL) -m 644 libmosquitto.3 "${DESTDIR}${mandir}/man3/libmosquitto.3"
  38. uninstall :
  39. -rm -f "${DESTDIR}${mandir}/man8/mosquitto.8"
  40. -rm -f "${DESTDIR}${mandir}/man5/mosquitto.conf.5"
  41. -rm -f "${DESTDIR}${mandir}/man1/mosquitto_ctrl.1"
  42. -rm -f "${DESTDIR}${mandir}/man1/mosquitto_ctrl_dynsec.1"
  43. -rm -f "${DESTDIR}${mandir}/man1/mosquitto_passwd.1"
  44. -rm -f "${DESTDIR}${mandir}/man1/mosquitto_pub.1"
  45. -rm -f "${DESTDIR}${mandir}/man1/mosquitto_sub.1"
  46. -rm -f "${DESTDIR}${mandir}/man1/mosquitto_rr.1"
  47. -rm -f "${DESTDIR}${mandir}/man7/mqtt.7"
  48. -rm -f "${DESTDIR}${mandir}/man7/mosquitto-tls.7"
  49. -rm -f "${DESTDIR}${mandir}/man3/libmosquitto.3"
  50. mosquitto.8 : mosquitto.8.xml manpage.xsl
  51. $(XSLTPROC) $<
  52. mosquitto.conf.5 : mosquitto.conf.5.xml manpage.xsl
  53. $(XSLTPROC) $<
  54. mosquitto_ctrl.1 : mosquitto_ctrl.1.xml manpage.xsl
  55. $(XSLTPROC) $<
  56. mosquitto_ctrl_dynsec.1 : mosquitto_ctrl_dynsec.1.xml manpage.xsl
  57. $(XSLTPROC) $<
  58. mosquitto_passwd.1 : mosquitto_passwd.1.xml manpage.xsl
  59. $(XSLTPROC) $<
  60. mosquitto_pub.1 : mosquitto_pub.1.xml manpage.xsl
  61. $(XSLTPROC) $<
  62. mosquitto_sub.1 : mosquitto_sub.1.xml manpage.xsl
  63. $(XSLTPROC) $<
  64. mosquitto_rr.1 : mosquitto_rr.1.xml manpage.xsl
  65. $(XSLTPROC) $<
  66. mqtt.7 : mqtt.7.xml manpage.xsl
  67. $(XSLTPROC) $<
  68. mosquitto-tls.7 : mosquitto-tls.7.xml manpage.xsl
  69. $(XSLTPROC) $<
  70. libmosquitto.3 : libmosquitto.3.xml manpage.xsl
  71. $(XSLTPROC) $<
  72. html : *.xml
  73. set -e; for m in *.xml; \
  74. do \
  75. hfile=$$(echo $${m} | sed -e 's#\(.*\)\.xml#\1#' | sed -e 's/\./-/g'); \
  76. $(XSLTPROC) html.xsl $${m} > $${hfile}.html; \
  77. done
  78. potgen :
  79. xml2po -o po/mosquitto/mosquitto.8.pot mosquitto.8.xml
  80. xml2po -o po/mosquitto.conf/mosquitto.conf.5.pot mosquitto.conf.5.xml
  81. xml2po -o po/mosquitto_ctrl/mosquitto_ctrl.1.pot mosquitto_ctrl.1.xml
  82. xml2po -o po/mosquitto_ctrl/mosquitto_ctrl_dynsec.1.pot mosquitto_ctrl_dynsec.1.xml
  83. xml2po -o po/mosquitto_passwd/mosquitto_passwd.1.pot mosquitto_passwd.1.xml
  84. xml2po -o po/mosquitto_pub/mosquitto_pub.1.pot mosquitto_pub.1.xml
  85. xml2po -o po/mosquitto_sub/mosquitto_sub.1.pot mosquitto_sub.1.xml
  86. xml2po -o po/mosquitto_sub/mosquitto_rr.1.pot mosquitto_rr.1.xml
  87. xml2po -o po/mqtt/mqtt.7.pot mqtt.7.xml
  88. xml2po -o po/mosquitto-tls/mosquitto-tls.7.pot mosquitto-tls.7.xml
  89. xml2po -o po/libmosquitto/libmosquitto.3.pot libmosquitto.3.xml
  90. # To merge new translations do:
  91. # /usr/bin/xml2po -p de.po chapter1.xml > chapter1.de.xml