Debian Codegraph @

man/Makefile

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