summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2013-10-07 14:23:40 -0700
committerThiago Macieira <thiago.macieira@intel.com>2013-10-16 22:03:05 +0200
commitfd97e70698295d5b226ddb0cfc2cac589b404e5f (patch)
treed21c2013f3e25507576cd3c0d5ffecc8ab04280b
parentfcec472b8f842ba645638ff49c31112677d05242 (diff)
Add support for Mac-specific tools to qtchooser
Change-Id: I510ff1b560f5229497ad10632607590ee98b831d Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4ae5a65..2565acc 100644
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,8 @@ TOOLS = assistant \
# keep the above line empty
+MACTOOLS = macdeployqt
+
all:
cd src/qtchooser && $(MAKE)
@@ -50,10 +52,16 @@ distclean:
install:
cd src/qtchooser && $(MAKE) install
for tool in $(TOOLS); do ln -sf qtchooser "$(INSTALL_ROOT)$(bindir)/$$tool"; done
+ case `uname -s` in Darwin) \
+ for tool in $(MACTOOLS); do ln -sf qtchooser "$(INSTALL_ROOT)$(bindir)/$$tool"; done \
+ ;; esac
uninstall:
cd src/qtchooser && $(MAKE) uninstall
-for tool in $(TOOLS); do rm -f "$(INSTALL_ROOT)$(bindir)/$$tool"; done
+ case `uname -s` in Darwin) \
+ for tool in $(MACTOOLS); do rm -f "$(INSTALL_ROOT)$(bindir)/$$tool"; done \
+ ;; esac
tests/auto/Makefile: tests/auto/auto.pro
cd tests/auto && qmake -o Makefile auto.pro