De retour de congés...
[macros-openoffice.git] / auf-poste-client-reflets / Makefile
1 VERSION = $(shell dpkg-parsechangelog | sed -n 's/^Version: //p')
2 DIST = $(shell dpkg-parsechangelog | sed -n 's/^Distribution: //p')
3
4 all: build
5
6 build:
7 rm -f auf-reflets-tse.oxt
8 sed -i '/^ <version /s/="[^"]*"/="'$(VERSION)'"/' openoffice/description.xml
9 cd openoffice ; zip -9rpD ../auf-reflets-tse.oxt .
10
11 install:
12 install -m 0755 auf-reflets-tse $(DESTDIR)/usr/bin/
13 install -m 0644 auf-reflets-tse.desktop $(DESTDIR)/usr/share/applications/
14 install -m 0644 auf-reflets-tse.png $(DESTDIR)/usr/share/pixmaps/
15 install -m 0644 auf-reflets-tse.oxt $(DESTDIR)/usr/lib/openoffice/share/extension/install/
16
17 clean:
18 rm -f auf-reflets-tse.oxt
19
20 test:
21 debuild -I.git -I*.ex -b -us -uc && sudo debi
22
23 release:
24 debuild -I.git -I*.ex -tc && debrelease --dput $(DIST)-test
25