2018-07-28 20:56:23 +00:00
|
|
|
RESOURCES=$(shell find . -name '*.qrc')
|
|
|
|
RESOURCES_OUT=$(RESOURCES:.qrc=_rc.py)
|
|
|
|
|
|
|
|
UI=$(shell find . -name '*.ui')
|
|
|
|
UI_OUT=$(UI:.ui=_ui.py)
|
|
|
|
|
|
|
|
all: $(RESOURCES_OUT) $(UI_OUT)
|
|
|
|
|
|
|
|
clean:
|
2018-08-03 11:30:15 +00:00
|
|
|
rm -f ${UI_OUT}
|
|
|
|
rm -f ${RESOURCES_OUT}
|
|
|
|
find -name '__pycache__' -exec rm -rf "{}" \;
|
2018-07-28 20:56:23 +00:00
|
|
|
|
|
|
|
%_rc.py: %.qrc
|
|
|
|
pyrcc5 $< -o $@
|
|
|
|
|
|
|
|
%_ui.py: %.ui
|
|
|
|
pyuic5 $< -o $@
|
|
|
|
|
|
|
|
.PHONY: all clean
|