Skip to content

Commit

Permalink
adapt Makefile to Macos
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 29, 2018
1 parent 51e7a2e commit 112036d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $@ $<
Expand Down

0 comments on commit 112036d

Please sign in to comment.