changeset 348:286b82dfad80

Added a section for installing from sources via "make install" for Unix based systems. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@572 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Mon, 14 Jan 2008 10:57:14 +0000
parents 1afa67dbecc0
children f37e2242f9bd
files UniversalIndentGUI.pro
diffstat 1 files changed, 23 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/UniversalIndentGUI.pro	Mon Jan 14 10:21:33 2008 +0000
+++ b/UniversalIndentGUI.pro	Mon Jan 14 10:57:14 2008 +0000
@@ -21,7 +21,25 @@
  QMAKE-MAC_SDK = /Developer/SDKs/MacOSX10.4u.sdk
 }
 
+
+
+# Defining files that shall be installed
+unix:documentation.path = /usr/share/man/man1
+unix:documentation.files = doc/UniversalIndentGUI.1.gz
+unix:documentation.extra = cp doc/UniversalIndentGUI.man doc/UniversalIndentGUI.1; gzip doc/UniversalIndentGUI.1;
+
+unix:indenters.path = /etc/UniversalIndentGUI/indenters
+unix:indenters.files = indenters/*
+
+INSTALLS += target \
+            indenters \
+			documentation
+
+
+
+#######################
 # remove linker flag "-mthreads" so the mingwm10.dll is no longer needed
+#######################
 #message(old flags:$${QMAKE_LFLAGS})
 parameters = $${QMAKE_LFLAGS}
 newFlags =
@@ -50,6 +68,7 @@
     }
 }
 QMAKE_CXXFLAGS_EXCEPTIONS_ON = $${newFlags}
+#######################
 
 
 
@@ -59,10 +78,10 @@
     DESTDIR = ./release
 }
 
-MOC_DIR = $${DESTDIR}/tmp/moc
-UI_DIR = $${DESTDIR}/tmp/uic
-OBJECTS_DIR = $${DESTDIR}/tmp/obj
-RCC_DIR = $${DESTDIR}/tmp/qrc
+MOC_DIR = $${DESTDIR}/moc
+UI_DIR = $${DESTDIR}/uic
+OBJECTS_DIR = $${DESTDIR}/obj
+RCC_DIR = $${DESTDIR}/qrc
 
 #message ( destdir is $${DESTDIR}. uic is $${UI_DIR}. moc is $${MOC_DIR})