mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-22 00:40:30 +00:00
18 lines
481 B
Makefile
18 lines
481 B
Makefile
# generate Python files from UI description
|
|
|
|
# edit ui/*.ui files with designer
|
|
UI_FILES = linkchecker_ui_main.py linkchecker_ui_options.py linkchecker_ui_progress.py
|
|
RC_FILES = linkchecker_rc.py
|
|
|
|
|
|
all: $(UI_FILES) $(RC_FILES)
|
|
|
|
linkchecker_ui_%.py: ui/%.ui
|
|
pyuic4 -o $@ $<
|
|
sed -i -r -e 's/QtGui\.QApplication\.translate\("[^"]+", "([^"]+)", None, QtGui\.QApplication\.UnicodeUTF8\)/_("\1")/g' $@
|
|
|
|
linkchecker_rc.py: rc/linkchecker.qrc
|
|
pyrcc4 -o $@ $<
|
|
|
|
clean:
|
|
rm -f *.pyc *.pyo
|