linkchecker/linkcheck/gui/Makefile

25 lines
660 B
Makefile
Raw Normal View History

# generate Python files from UI description
# edit ui/*.ui files with designer (ie. /usr/bin/designer-qt4)
2010-10-03 10:12:57 +00:00
UI_FILES = linkchecker_ui_main.py \
linkchecker_ui_options.py \
linkchecker_ui_progress.py \
2010-10-14 19:13:28 +00:00
linkchecker_ui_debug.py \
2010-11-05 14:21:19 +00:00
linkchecker_ui_editor.py \
linkchecker_ui_properties.py
RC_FILES = linkchecker_rc.py
all: $(UI_FILES) $(RC_FILES)
linkchecker_ui_%.py: ui/%.ui
pyuic4 -o $@ $<
2010-10-03 10:12:57 +00:00
# replace the Qt translator with the one LinkChecker uses
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