forked from jlaine/qdjango
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qdjango.pro
34 lines (26 loc) · 771 Bytes
/
qdjango.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
include(qdjango.pri)
TEMPLATE = subdirs
SUBDIRS = src
android {
} else {
SUBDIRS += tests examples
INSTALLS += htmldocs
}
CONFIG += ordered
# Documentation generation
docs.commands = cd doc/ && doxygen
# Source distribution
QDJANGO_ARCHIVE = qdjango-$$QDJANGO_VERSION
dist.commands = \
$(DEL_FILE) -r $$QDJANGO_ARCHIVE && \
$(MKDIR) $$QDJANGO_ARCHIVE && \
git archive master | tar -x -C $$QDJANGO_ARCHIVE && \
$(COPY_DIR) doc/html $$QDJANGO_ARCHIVE/doc && \
tar czf $${QDJANGO_ARCHIVE}.tar.gz $$QDJANGO_ARCHIVE && \
$(DEL_FILE) -r $$QDJANGO_ARCHIVE
dist.depends = docs
# Install rules
htmldocs.files = doc/html
htmldocs.path = $$PREFIX/share/doc/qdjango
htmldocs.CONFIG += no_check_exist directory
QMAKE_EXTRA_TARGETS += dist docs