TOP = $(shell readlink -f .) VERSION_SHORT = 5.15 VERSION_RELEASE = 0 VERSION = $(VERSION_SHORT).$(VERSION_RELEASE) 7ZIP = $(TOP)/wintools/7za.exe LOCAL_BUILD_PATH = c:/tmp/qtbuild SRCDIR = $(LOCAL_BUILD_PATH)/qt-everywhere-src-5.15.0 TOOLS = moc rcc uic qlalr qvkgen tracegen all: download unpack configure tools pack clean download: $(MAKE) -C ./SOURCE zip unpack: mkdir -p $(LOCAL_BUILD_PATH) cd $(LOCAL_BUILD_PATH); \ rm -Rf qt-everywhere-src-$(VERSION) ; \ $(7ZIP) x $(TOP)/SOURCE/qt-everywhere-src-$(VERSION).zip configure: cd $(SRCDIR) && \ ./configure.bat -opensource -confirm-license tools: cd $(SRCDIR)/qtbase/src/tools/bootstrap && \ $(SRCDIR)/qtbase/bin/qmake -o Makefile && \ make -f Makefile cd $(SRCDIR)/qtbase/src/tools/moc && \ $(SRCDIR)/qtbase/bin/qmake -o Makefile && \ make -f Makefile cd $(SRCDIR)/qtbase/src/tools/rcc && \ $(SRCDIR)/qtbase/bin/qmake -o Makefile && \ make -f Makefile cd $(SRCDIR)/qtbase/src/3rdparty/pcre2 && \ $(SRCDIR)/qtbase/bin/qmake -o Makefile && \ make -f Makefile cd $(SRCDIR)/qtbase/src/corelib && \ $(SRCDIR)/qtbase/bin/qmake -o Makefile && \ make -f Makefile for t in $(TOOLS) ; do \ cd $(SRCDIR)/qtbase/src/tools/$$t ;\ $(SRCDIR)/qtbase/bin/qmake -o Makefile ;\ make -f Makefile ;\ done pack: cd $(SRCDIR)/qtbase/bin && \ tar -zcf $(TOP)/qtwintools.tgz ./*.exe clean: rm -Rf $(LOCAL_BUILD_PATH)