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