| 1 | LUPDATE = lupdate |
| 2 | LRELEASE = lrelease |
| 3 | |
| 4 | TEMPLATES = ../Templates/*.mat |
| 5 | TEMPLATES_PO = templates_*.po |
| 6 | TEMPLATES_LAUNCHPAD_PO = templates-*.po templates/*.po |
| 7 | MAIN = *.ts |
| 8 | MAIN_PO = merkaartor_*.po |
| 9 | MAIN_LAUNCHPAD_PO = merkaartor-*.po merkaartor/*.po |
| 10 | CALL = perl i18n.pl |
| 11 | TARCALL = perl maketar.pl |
| 12 | CD = cd |
| 13 | |
| 14 | update: updatets template main release |
| 15 | |
| 16 | tar: |
| 17 | ${TARCALL} *_*.po *.pot |
| 18 | |
| 19 | template: |
| 20 | ${CALL} templates ${TEMPLATES} ${TEMPLATES_LAUNCHPAD_PO} ${TEMPLATES_PO} |
| 21 | |
| 22 | main: |
| 23 | ${CALL} merkaartor ${MAIN} ${MAIN_LAUNCHPAD_PO} ${MAIN_PO} |
| 24 | |
| 25 | updatets: |
| 26 | ${CD} .. && ${LUPDATE} -noobsolete Merkaartor.pro |
| 27 | |
| 28 | release: |
| 29 | ${CD} .. && ${LRELEASE} src/src.pro |
| 30 | |
| 31 | clean: |
| 32 | @-${RM} *.po *.pot *.qm *.tar.gz |