2008-06-11 07:34:32 +00:00
|
|
|
# generate Python files from UI description
|
2005-04-25 18:26:39 +00:00
|
|
|
|
2010-09-28 18:20:33 +00:00
|
|
|
# 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
|
2009-01-07 18:13:17 +00:00
|
|
|
RC_FILES = linkchecker_rc.py
|
2005-04-25 18:26:39 +00:00
|
|
|
|
2008-06-11 07:34:32 +00:00
|
|
|
|
2009-01-07 18:13:17 +00:00
|
|
|
all: $(UI_FILES) $(RC_FILES)
|
|
|
|
|
|
|
|
|
|
linkchecker_ui_%.py: ui/%.ui
|
2008-06-11 13:01:26 +00:00
|
|
|
pyuic4 -o $@ $<
|
2010-10-03 10:12:57 +00:00
|
|
|
# replace the Qt translator with the one LinkChecker uses
|
2009-03-04 21:41:25 +00:00
|
|
|
sed -i -r -e 's/QtGui\.QApplication\.translate\("[^"]+", "([^"]+)", None, QtGui\.QApplication\.UnicodeUTF8\)/_("\1")/g' $@
|
2008-06-11 07:34:32 +00:00
|
|
|
|
2009-01-07 18:13:17 +00:00
|
|
|
linkchecker_rc.py: rc/linkchecker.qrc
|
|
|
|
|
pyrcc4 -o $@ $<
|
2008-06-11 07:34:32 +00:00
|
|
|
|
2009-01-07 18:13:17 +00:00
|
|
|
clean:
|
|
|
|
|
rm -f *.pyc *.pyo
|