DEST = /install/gimp UTF8TXT = $(addsuffix .utf8,$(basename $(wildcard *.*.txt))) all : $(UTF8TXT) install : all for f in $(UTF8TXT); do cp $$f $(DEST)/tips/`basename $$f .utf8`.txt; done cp gimp_tips.txt $(DEST)/tips .SUFFIXES: .utf8 %.cs.utf8: %.cs.txt iconv -f ISO-8859-2 -t UTF-8 $< >$@ %.de.utf8: %.de.txt iconv -f ISO-8859-1 -t UTF-8 $< >$@ %.es.utf8: %.es.txt iconv -f ISO-8859-1 -t UTF-8 $< >$@ %.fr.utf8: %.fr.txt iconv -f ISO-8859-1 -t UTF-8 $< >$@ %.fr.utf8: %.hu.txt iconv -f ISO-8859-2 -t UTF-8 $< >$@ %.it.utf8: %.it.txt iconv -f ISO-8859-1 -t UTF-8 $< >$@ %.ja.utf8: %.ja.txt iconv -f EUC-JP -t UTF-8 $< >$@ %.ko.utf8: %.ko.txt iconv -f EUC-KR -t UTF-8 $< >$@ %.pl.utf8: %.pl.txt iconv -f ISO-8859-2 -t UTF-8 $< >$@ %.ru.utf8: %.ru.txt iconv -f KOI8-R -t UTF-8 $< >$@ %.tr.utf8: %.tr.txt iconv -f ISO-8859-9 -t UTF-8 $< >$@ %.uk.utf8: %.uk.txt iconv -f KOI8-U -t UTF-8 $< >$@ %.zh_CN.utf8: %.zh_CN.txt iconv -f GB2312 -t UTF-8 $< >$@ %.zh_TW.utf8: %.zh_TW.txt iconv -f Big5 -t UTF-8 $< >$@ clean: -rm *.utf8