3 # This is the makefile used by debian/rules when invoked by rake deb
11 install: install-bin install-lib install-conf install-plugins install-doc
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
21 install -d $(DESTDIR)/usr/lib/ruby/vendor_ruby/
22 cp -a lib/* $(DESTDIR)/usr/lib/ruby/vendor_ruby/
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
33 install -d $(DESTDIR)/usr/share/mcollective/
34 cp -a plugins $(DESTDIR)/usr/share/mcollective/
37 install -d $(DESTDIR)/usr/share/doc/
38 cp -a doc $(DESTDIR)/usr/share/doc/mcollective
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
46 .PHONY: build clean install uninstall