Création d'un paquet pour B2UConverter.
[macros-openoffice.git] / auf-libreoffice-extension / Makefile
1 PACKAGE = $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
2 VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
3 DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
4
5 all: build
6
7 build:
8 sed -i '/^ <version /s/="[^"]*"/="'$(VERSION)'"/' extension/description.xml
9
10 install: build
11 install -m 0755 -d $(DESTDIR)/usr/lib/libreoffice/share/extensions/$(PACKAGE)
12 cp -a extension/* $(DESTDIR)/usr/lib/libreoffice/share/extensions/$(PACKAGE)/
13
14 clean:
15
16 deb: build
17 debuild -I.git -I*.ex -us -uc -b && \
18 echo -e "\n\n==> Lancer \"sudo debi\" pour tester l'installation.\n"
19
20 release:
21 debuild -I.git -I*.ex -us -uc -tc -sa && debrelease --dput $(DIST)-test