| 1 | all: oxt |
| 2 | |
| 3 | # https://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/File_Format |
| 4 | |
| 5 | FILES=dictionaries.xcu description.xml package-description.txt |
| 6 | |
| 7 | oxt: $(FILES) ../README.md ../CHANGELOG.md ../bo.dic ../bo.aff META-INF/manifest.xml |
| 8 | @echo "Making oxt file for LibreOffice..." |
| 9 | @mkdir -p dictionaries && cp ../bo.dic ../bo.aff dictionaries |
| 10 | @cp ../README.md . |
| 11 | @zip -rq tibetan-spellchecker.oxt dictionaries $(FILES) META-INF README.md CHANGELOG.md |
| 12 | |
| 13 | clean: |
| 14 | @rm -rf dictionaries README.md CHANGELOG.md tibetan-spellchecker.oxt |