make the think independent from my machine; add a REAME file

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19401 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2007-08-10 15:24:54 +00:00
parent 1452e0d285
commit e105b2bbd7
3 changed files with 19 additions and 10 deletions

5
development/qmake/README Normal file
View File

@ -0,0 +1,5 @@
- Create a directory in paralle to your source tree
- cd there
- Run ../<sourcetree>/development/qmake/doit
- Run make or make debug

View File

@ -6,11 +6,8 @@ CONFIG += create_prl
DESTDIR = ../lib DESTDIR = ../lib
BUILD_BASE_SOURCE_DIR = /suse/usr/src/lyx/trunk BUILD_BASE_SOURCE_DIR = $$[BUILD_BASE_SOURCE_DIR]
BUILD_BASE_TARGET_DIR = /suse/usr/src/lyx/qmake BUILD_BASE_TARGET_DIR = $$[BUILD_BASE_TARGET_DIR]
#message(BUILD_BASE_SOURCE_DIR: $${BUILD_BASE_SOURCE_DIR})
#message(BUILD_BASE_TARGET_DIR: $${BUILD_BASE_TARGET_DIR})
# for <config.h> # for <config.h>
INCLUDEPATH += $${BUILD_BASE_TARGET_DIR}/src INCLUDEPATH += $${BUILD_BASE_TARGET_DIR}/src

View File

@ -1,6 +1,13 @@
#!/bin/sh #!/bin/bash
TARGET_DIR=$(pwd)
SOURCE_DIR=$(dirname $(dirname $(dirname $TARGET_DIR/$0 | sed -e 's:/[^/]*/\.\.::')))
echo "Setting SOURCE_DIR ${SOURCE_DIR}"
echo "Setting TARGET_DIR ${TARGET_DIR}"
qmake -set BUILD_BASE_SOURCE_DIR ${SOURCE_DIR}
qmake -set BUILD_BASE_TARGET_DIR ${TARGET_DIR}
qmake -r "$@" ${SOURCE_DIR}/development/qmake/lyx.pro
SOURCE_DIR=`pwd`
TARGET_DIR=`dirname $SOURCE_DIR/$0`
echo $SOURCE_DIR $TARGET_DIR
#qmake -r ../trunk/development/qmake/lyx.pro