mo: remastertool.mo remastertool_plugin_knoppix5.mo remastertool_plugin_deb.mo remastertool_plugin_cd.mo remastertool_plugin_rpm.mo remastertool_plugin_usb.mo remastertool_plugin_xml.mo remastertool_plugin_html.mo remastertool_plugin_wiki.mo remastertool_plugin_qemu.mo remastertool_plugin_filetest.mo remastertool_plugin_commandtest.mo

po: remastertool.po remastertool_plugin_knoppix5.po remastertool_plugin_deb.po remastertool_plugin_cd.po remastertool_plugin_rpm.po remastertool_plugin_usb.po remastertool_plugin_html.po remastertool_plugin_html.po remastertool_plugin_wiki.mo remastertool_plugin_qemu.po remastertool_plugin_filetest.po remastertool_plugin_commandtest.po

remastertool.mo: remastertool.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_knoppix5.mo: remastertool_plugin_knoppix5.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_deb.mo: remastertool_plugin_deb.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_rpm.mo: remastertool_plugin_rpm.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_cd.mo: remastertool_plugin_cd.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_usb.mo: remastertool_plugin_usb.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_xml.mo: remastertool_plugin_xml.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_html.mo: remastertool_plugin_html.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_wiki.mo: remastertool_plugin_wiki.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_qemu.mo: remastertool_plugin_qemu.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_filetest.mo: remastertool_plugin_filetest.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool_plugin_commandtest.mo: remastertool_plugin_commandtest.po
	msgfmt -o $@ $<
	cp -f $@ /usr/share/locale/ja/LC_MESSAGES

remastertool.po: ../en/remastertool.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@

remastertool_plugin_knoppix5.po: ../en/remastertool_plugin_knoppix5.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@

remastertool_plugin_deb.po: ../en/remastertool_plugin_deb.pot
	@if [ -f $@ ]; then \
		mv $@ $@.old; \
		msgmerge $@.old $< -o $@ ; \
	else \
		cp $< $@ ; \
	fi
	chown omori $@

remastertool_plugin_rpm.po: ../en/remastertool_plugin_rpm.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@

remastertool_plugin_cd.po: ../en/remastertool_plugin_cd.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@

remastertool_plugin_usb.po: ../en/remastertool_plugin_usb.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@

remastertool_plugin_xml.po: ../en/remastertool_plugin_xml.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@

remastertool_plugin_html.po: ../en/remastertool_plugin_html.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@

remastertool_plugin_wiki.po: ../en/remastertool_plugin_wiki.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@

remastertool_plugin_qemu.po: ../en/remastertool_plugin_qemu.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@

remastertool_plugin_filetest.po: ../en/remastertool_plugin_filetest.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@

remastertool_plugin_commandtest.po: ../en/remastertool_plugin_commandtest.pot
	mv $@ $@.old
	msgmerge $@.old $< -o $@
	chown omori $@
