From 112036df5682ef7eba65883c113fd993803f47c4 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Mon, 29 Jan 2018 13:21:11 -0400 Subject: [PATCH] adapt Makefile to Macos --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 60e094cb..336acfdc 100644 --- a/Makefile +++ b/Makefile @@ -31,12 +31,19 @@ TS_FILES=$(patsubst %.ts,%.qm,$(TS_SOURCES)) GEN_FILES = ${UI_FILES} ${RC_FILES} ${TS_FILES} +OS := $(shell uname) +ifeq ($(OS), Darwin) + QTPYTHONPATH=/usr/local/lib/qt-4/python2.7/site-packages +else +endif + + all: $(GEN_FILES) ui: $(UI_FILES) resources: $(RC_FILES) $(UI_FILES): ui/ui_%.py: ui/%.ui - pyuic4 -o $@ $< + PYTHONPATH=$(QTPYTHONPATH):$(PYTHONPATH) pyuic4 -o $@ $< $(RC_FILES): %.py: %.qrc pyrcc4 -o $@ $<