forked from choria-legacy/marionette-collective
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
42 lines (31 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/make -f
DESTDIR=
build:
clean:
install: install-bin install-lib install-conf install-plugins install-doc
install-bin:
install -d $(DESTDIR)/usr/sbin
cp mc-* $(DESTDIR)/usr/sbin
cp mcollectived.rb $(DESTDIR)/usr/sbin/mcollectived
install-lib:
install -d $(DESTDIR)/usr/lib/ruby/1.8/
cp -a lib/* $(DESTDIR)/usr/lib/ruby/1.8/
install-conf:
install -d $(DESTDIR)/etc/mcollective/
install -d $(DESTDIR)/etc/init.d
cp -r etc/* $(DESTDIR)/etc/mcollective/
cp mcollective.init $(DESTDIR)/etc/init.d/mcollective
rm $(DESTDIR)/etc/mcollective/ssl/PLACEHOLDER
rm $(DESTDIR)/etc/mcollective/ssl/clients/PLACEHOLDER
install-plugins:
install -d $(DESTDIR)/usr/share/mcollective/
cp -a plugins $(DESTDIR)/usr/share/mcollective/
install-doc:
install -d $(DESTDIR)/usr/share/doc/
cp -a doc $(DESTDIR)/usr/share/doc/mcollective
uninstall:
rm -f $(DESTDIR)/usr/sbin/mcollectived
rm -rf $(DESTDIR)/usr/lib/ruby/1.8/mcollective*
rm -rf $(DESTDIR)/usr/share/mcollective
rm -rf $(DESTDIR)/etc/mcollective
.PHONY: build clean install uninstall