oubli…
[asterisk-config-auf-connexions.git] / 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:
6
7 clean:
8 rm -f *.global liste-serveurs pourwiki.txt
9
10 install: install-keys install-create install-copy
11
12 install-keys:
13 mkdir -p $(DESTDIR)/usr/share/asterisk/keys
14 cp keys/*.pub $(DESTDIR)/usr/share/asterisk/keys/
15 chown root.root $(DESTDIR)/usr/share/asterisk/keys/*.pub
16
17 install-create:
18 rm -f *.conf
19 ./creer-fichiers
20
21 install-copy:
22 mkdir -p $(DESTDIR)/etc/asterisk/auf
23 cp -f -a *.global $(DESTDIR)/etc/asterisk/auf/
24 mkdir -p $(DESTDIR)/usr/share/doc/asterisk-config-auf-connexions/
25 cp liste-serveurs liste-serveurs-canon $(DESTDIR)/usr/share/doc/asterisk-config-auf-connexions/
26
27 deb:
28 debuild -I.git -I*.ex -us -uc -b && \
29 echo -e "\n\n==> Lancer \"sudo debi\" pour tester l'installation.\n"
30
31 release:
32 debuild -I.git -I*.ex -us -uc -tc -sa && debrelease --dput wheezy-test
33