const or not const that is the question, whether we're on mac or on a different system; refs #22

This commit is contained in:
Marc Wäckerlin
2011-02-02 12:22:49 +00:00
parent 7fa2ba91f8
commit b3023927a4
8 changed files with 187 additions and 167 deletions

View File

@@ -1,4 +1,5 @@
QT=$(shell ls -1 | sed -n 's/\(qt-.*\)\.tar\.gz/\1/p')
PREFIX=/usr/local/trolltech/qt
all: build-lin32 build
@@ -6,6 +7,7 @@ maintainer-clean: clean
-rm -rf ${QT} ${QT}-lin32
install: install-lin32
rm -rf ${PREFIX}
cd ${QT} && make install
${QT}: ${QT}.tar.gz
@@ -14,10 +16,11 @@ ${QT}: ${QT}.tar.gz
build: ${QT}
-cd $< && make confclean
cd $< && (echo "yes" | ./configure -opensource -prefix /usr/local/trolltech/qt)
cd $< && (echo "yes" | ./configure -opensource -prefix ${PREFIX})
cd $< && make
install-lin32:
rm -rf ${PREFIX}-32bit
cd ${QT}-lin32 && make install
${QT}-lin32: ${QT}
@@ -25,7 +28,7 @@ ${QT}-lin32: ${QT}
build-lin32: ${QT}-lin32
-cd $< && make confclean
cd $< && (echo "yes" | ./configure -opensource -platform linux-g++-32 -prefix /usr/local/trolltech/qt-32bit)
cd $< && (echo "yes" | ./configure -opensource -platform linux-g++-32 -prefix ${PREFIX}-32bit)
cd $< && make
.PHONY: maintainer-clean all build install build-lin32 install-lin32