Update version according to OSCI-856
[packages/precise/mcollective.git] / ext / Makefile.debian
1 #!/usr/bin/make -f
2
3 # This is the makefile used by debian/rules when invoked by rake deb
4
5 DESTDIR=
6
7 build:
8
9 clean:
10
11 install: install-bin install-lib install-conf install-plugins install-doc
12
13 install-bin:
14         install -d $(DESTDIR)/usr/sbin
15         install -d $(DESTDIR)/usr/bin
16         cp bin/mc-* $(DESTDIR)/usr/sbin
17         cp bin/mco $(DESTDIR)/usr/bin
18         cp bin/mcollectived $(DESTDIR)/usr/sbin/mcollectived
19
20 install-lib:
21         install -d $(DESTDIR)/usr/lib/ruby/vendor_ruby/
22         cp -a lib/* $(DESTDIR)/usr/lib/ruby/vendor_ruby/
23
24 install-conf:
25         install -d $(DESTDIR)/etc/mcollective/
26         install -d $(DESTDIR)/etc/init.d
27         cp -r etc/* $(DESTDIR)/etc/mcollective/
28         cp mcollective.init $(DESTDIR)/etc/init.d/mcollective
29         rm $(DESTDIR)/etc/mcollective/ssl/PLACEHOLDER
30         rm $(DESTDIR)/etc/mcollective/ssl/clients/PLACEHOLDER
31
32 install-plugins:
33         install -d $(DESTDIR)/usr/share/mcollective/
34         cp -a plugins $(DESTDIR)/usr/share/mcollective/
35
36 install-doc:
37         install -d $(DESTDIR)/usr/share/doc/
38         cp -a doc  $(DESTDIR)/usr/share/doc/mcollective
39
40 uninstall:
41         rm -f $(DESTDIR)/usr/sbin/mcollectived
42         rm -rf $(DESTDIR)/usr/lib/ruby/1.8/mcollective*
43         rm -rf $(DESTDIR)/usr/share/mcollective
44         rm -rf $(DESTDIR)/etc/mcollective
45
46 .PHONY: build clean install uninstall