aboutsummaryrefslogtreecommitdiff
path: root/depends/packages/qt.mk
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-12-16 14:41:11 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-12-16 15:21:31 +0200
commit87fe104537eab5ccd8728321fe1c9ba39f7dda78 (patch)
tree49477fc8672cc30e7deb9df32c2bb3bb9651cdd1 /depends/packages/qt.mk
parentbf35a8da6ec2791dedf36f459add69ac67b11ff9 (diff)
depends: Use more legible qmake commands in qt package
This change gets rid of multiple `../` that makes reasoning about the script and its maintaining much easier. Co-authored-by: fanquake <fanquake@gmail.com>
Diffstat (limited to 'depends/packages/qt.mk')
-rw-r--r--depends/packages/qt.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/depends/packages/qt.mk b/depends/packages/qt.mk
index e816f0bea6..e0810a4501 100644
--- a/depends/packages/qt.mk
+++ b/depends/packages/qt.mk
@@ -260,11 +260,12 @@ define $(package)_config_cmds
./configure $($(package)_config_opts) && \
echo "host_build: QT_CONFIG ~= s/system-zlib/zlib" >> mkspecs/qconfig.pri && \
echo "CONFIG += force_bootstrap" >> mkspecs/qconfig.pri && \
- $(MAKE) sub-src-clean && \
- cd ../qttranslations && ../qtbase/bin/qmake qttranslations.pro -o Makefile && \
- cd translations && ../../qtbase/bin/qmake translations.pro -o Makefile && cd ../.. && \
- cd qttools/src/linguist/lrelease/ && ../../../../qtbase/bin/qmake lrelease.pro -o Makefile && \
- cd ../lupdate/ && ../../../../qtbase/bin/qmake lupdate.pro -o Makefile && cd ../../../..
+ cd .. && \
+ $(MAKE) -C qtbase sub-src-clean && \
+ qtbase/bin/qmake -o qttranslations/Makefile qttranslations/qttranslations.pro && \
+ qtbase/bin/qmake -o qttranslations/translations/Makefile qttranslations/translations/translations.pro && \
+ qtbase/bin/qmake -o qttools/src/linguist/lrelease/Makefile qttools/src/linguist/lrelease/lrelease.pro && \
+ qtbase/bin/qmake -o qttools/src/linguist/lupdate/Makefile qttools/src/linguist/lupdate/lupdate.pro
endef
define $(package)_build_cmds