QT=$(shell ls -1 | sed -n 's/\(qt-.*\)\.tar\.gz/\1/p') all: build maintainer-clean: clean -rm -rf ${QT} install: cd ${QT} && make install ${QT}: ${QT}.tar.gz tar xzvf $< cd $@ && patch -p1 < ../patch/qt-sources-patch.diff build: ${QT} cd $< && (echo "yes" | ./configure -opensource -prefix=/usr/local/trolltech/qt) cd $< && make install-lin32: cd ${QT}-lin32 && make install ${QT}-lin32: ${QT} cp -a $< $@ build-lin32: ${QT}-lin32 cd $< && (echo "yes" | ./configure -opensource -platform linux-g++-32 -prefix=/usr/local/trolltech/qt-32bit) cd $< && make .PHONY: maintainer-clean all build install