Implementation de 'make install'

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@199 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-10-28 22:22:56 +00:00
parent e1716f46cf
commit 3d64380a96
2 changed files with 41 additions and 18 deletions

View File

@@ -1,12 +1,25 @@
###################################################################### ######################################################################
# Automatically generated by qmake (2.01a) ven. sept. 21 14:11:20 2007 # Fichier projet de QElectroTech #
######################################################################
# Chemins utilises pour la compilation et l'installation de QET
COMPIL_PREFIX = '/usr/local/'
INSTALL_PREFIX = '/usr/local/'
QET_BINARY_PATH = 'bin/'
QET_COMMON_COLLECTION_PATH = 'share/qelectrotech/elements/'
QET_LANG_PATH = 'share/qelectrotech/lang/'
QET_LICENSE_PATH = 'doc/qelectrotech/'
#Commenter la ligne ci-dessous pour desactiver l'option --common-elements-dir
DEFINES += QET_ALLOW_OVERRIDE_CED_OPTION
###################################################################### ######################################################################
TEMPLATE = app TEMPLATE = app
DEPENDPATH += . editor lang DEPENDPATH += . editor lang
INCLUDEPATH += . editor INCLUDEPATH += . editor
# Input # Fichiers sources
HEADERS += aboutqet.h \ HEADERS += aboutqet.h \
borderinset.h \ borderinset.h \
conductor.h \ conductor.h \
@@ -133,17 +146,27 @@ TRANSLATIONS += lang/qet_en.ts lang/qt_fr.ts
RC_FILE = ico/windows_icon/application_icon/qelectrotech.rc RC_FILE = ico/windows_icon/application_icon/qelectrotech.rc
QT += xml svg QT += xml svg
CONFIG += debug_and_release warn_on CONFIG += debug_and_release warn_on
CONFIG(debug, debug|release) {
TARGET = qelectrotech TARGET = qelectrotech
} else {
TARGET = qelectrotech.release
}
# Description de l'installation
target.path = $$join(INSTALL_PREFIX,,,$${QET_BINARY_PATH})
target.files = $${TARGET}
elements.path = $$join(INSTALL_PREFIX,,,$${QET_COMMON_COLLECTION_PATH})
elements.files = elements/*
lang.path = $$join(INSTALL_PREFIX,,,$${QET_LANG_PATH})
lang.files = $$replace(TRANSLATIONS, '.ts', '.qm')
copyright.path = $$join(INSTALL_PREFIX,,,$${QET_LICENSE_PATH})
copyright.files = LICENSE
# L'installation comprend la copie du binaire, des elements, des fichiers de langue et du fichier LICENSE
INSTALLS += target elements lang copyright
# Options de compilation
# Chemin des fichiers de traduction ; par defaut : lang/ dans le repertoire d'execution # Chemin des fichiers de traduction ; par defaut : lang/ dans le repertoire d'execution
#DEFINES += QET_LANG_PATH='/path/to/qelectrotech/lang/' DEFINES += QET_LANG_PATH=$$join(COMPIL_PREFIX,,,$${QET_LANG_PATH})
# Chemin de la collection commune ; par defaut : elements/ dans le repertoire d'execution # Chemin de la collection commune ; par defaut : elements/ dans le repertoire d'execution
#DEFINES += QET_COMMON_COLLECTION_PATH='/path/to/qelectrotech/elements/' DEFINES += QET_COMMON_COLLECTION_PATH=$$join(COMPIL_PREFIX,,,$${QET_COMMON_COLLECTION_PATH})
#Commenter la ligne ci-dessous pour desactiver l'option --common-elements-dir
DEFINES += QET_ALLOW_OVERRIDE_CED_OPTION