-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
38 lines (27 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Make file for the extension
# Please type `make help` for usage information.
VERSION := $(shell git describe --abbrev=0 --tags)
all: clean oxt install
clean:
unopkg remove ooolilypond*.oxt || exit 0
rm -f ooolilypond*.oxt
rm -rf translation/extension-*
oxt:
cd extension && zip -r ../ooolilypond-$(VERSION).oxt *
install:
unopkg add ooolilypond-$(VERSION).oxt
# translation
de: clean oxtde installde
oxtde:
translation/translate.py de
cd translation/extension-de && zip -r ../../ooolilypond-$(VERSION)-de.oxt *
installde:
unopkg add ooolilypond-$(VERSION)-de.oxt
help:
@echo "make reinstall extension from working directory"
@echo "make clean uninstall all installed ooolilypond extensions"
@echo "make oxt build oxt file"
@echo "make install install oxt file in LibreOffice"
@echo "make de reinstall the German extension from working directory"
@echo "make oxtde translate and build German oxt file"
@echo "make installde install German oxt file in LibreOffice"