aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-10 17:29:10 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-10 17:29:10 +0000
commit4ef4326dc497893c687df258dd93b9cad30dafad (patch)
tree94e13866ae1acf13f8f9fd64b7e8eb2921a1abb1
parent7105917072682fd7e74bd7eca50ba406dd346225 (diff)
downloadqxmpp-4ef4326dc497893c687df258dd93b9cad30dafad.tar.gz
add rules for generating documentation
-rw-r--r--doc/doc.pri11
-rw-r--r--qxmpp.pro2
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/doc.pri b/doc/doc.pri
new file mode 100644
index 00000000..a717d5d2
--- /dev/null
+++ b/doc/doc.pri
@@ -0,0 +1,11 @@
+# Build rules
+docs.commands = cd doc && doxygen
+docs.depends = doc/Doxyfile
+
+# Install rules
+htmldocs.files = doc/html
+htmldocs.path = /usr/share/doc/qxmpp
+htmldocs.CONFIG += no_check_exist directory
+
+QMAKE_EXTRA_TARGETS += docs
+INSTALLS += htmldocs
diff --git a/qxmpp.pro b/qxmpp.pro
index ef023f34..95f97f7c 100644
--- a/qxmpp.pro
+++ b/qxmpp.pro
@@ -7,3 +7,5 @@ SUBDIRS = source \
examples
CONFIG += ordered
+
+include(doc/doc.pri)