summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukáš Lalinský <lalinsky@gmail.com>2010-01-24 14:49:11 +0100
committerLukáš Lalinský <lalinsky@gmail.com>2010-01-24 14:49:11 +0100
commit0a6ac1c07d9400d3b12b65eaa01da78286be6fde (patch)
tree6f3fa7b8ebedc8d5cc3a0fff22d3fe22e6ee35c7 /src
parent3c158ea8f10f01c18090de9a2979edad0ca0d10a (diff)
downloaddbmodel-0a6ac1c07d9400d3b12b65eaa01da78286be6fde.tar.xz
Install a man page on UNIX
Diffstat (limited to 'src')
-rw-r--r--src/src.pro21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/src.pro b/src/src.pro
index 5035315..7d3f7da 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -22,14 +22,23 @@ UI_DIR = $$PWD/.build
RCC_DIR = $$PWD/.build
unix {
- isEmpty(PREFIX) {
- PREFIX = /usr/local
- }
+ isEmpty(PREFIX) {
+ PREFIX = /usr/local
+ }
- BINDIR = $$PREFIX/bin
+ BINDIR = $$PREFIX/bin
+ DATADIR = $$PREFIX/share
- INSTALLS += target
- target.path = $$BINDIR
+ INSTALLS += target man man-compress
+
+ target.path = $$BINDIR
+
+ man.path = $$DATADIR/man/man1
+ man.files += ../data/dbmodel.1
+
+ man-compress.path = $$DATADIR/man/man1
+ man-compress.extra = "" "gzip -9 -f \$(INSTALL_ROOT)/$$DATADIR/man/man1/dbmodel.1" ""
+ man-compress.depends = install_man
}
# It's required for windows correct include path.