-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathMakefile
46 lines (36 loc) · 1.96 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
43
44
45
46
NAME = dci-openshift-agent
BUILDROOT =
DATADIR = /usr/share
SYSCONFDIR = /etc
BINDIR = /usr/bin
SHAREDSTATEDIR = /var/lib
install:
install -p -D -m 644 ansible.cfg $(BUILDROOT)$(DATADIR)/dci-openshift-agent/ansible.cfg
install -p -D -m 644 dci-openshift-agent.yml $(BUILDROOT)$(DATADIR)/dci-openshift-agent/dci-openshift-agent.yml
install -p -D -m 644 dcirc.sh.dist $(BUILDROOT)$(SYSCONFDIR)/dci-openshift-agent/dcirc.sh.dist
for hook in hooks/*.yml; do \
install -p -D -m 644 $$hook $(BUILDROOT)$(SYSCONFDIR)/dci-openshift-agent/$$hook; \
done
for play in plays/*.yml; \
do install -p -D -m 644 $$play $(BUILDROOT)$(DATADIR)/dci-openshift-agent/$$play; \
done
for script in plays/scripts/*; do \
install -p -D -m 755 $$script $(BUILDROOT)$(DATADIR)/dci-openshift-agent/$$script; \
done
for microshift_play in plays/microshift/*.yml; do \
install -p -D -m 755 $$microshift_play $(BUILDROOT)$(DATADIR)/dci-openshift-agent/$$microshift_play; \
done
install -p -D -m 644 plays/microshift/group_vars/all $(BUILDROOT)$(DATADIR)/dci-openshift-agent/plays/microshift/group_vars/all
for template in plays/templates/*; do \
install -p -D -m 755 $$template $(BUILDROOT)$(DATADIR)/dci-openshift-agent/$$template; \
done
install -dm 755 "$(BUILDROOT)$(DATADIR)/dci-openshift-agent/utils/"
install -Dm 755 utils/cleanup-scripts/*{.sh,.py} "$(BUILDROOT)$(DATADIR)/dci-openshift-agent/utils/"
for plugin in action_plugins/*.py; \
do install -p -D -m 644 $$plugin $(BUILDROOT)$(DATADIR)/dci-openshift-agent/$$plugin; \
done
install -p -D -m 644 group_vars/all $(BUILDROOT)$(DATADIR)/dci-openshift-agent/group_vars/all
install -p -D -m 440 dci-openshift-agent.sudo $(BUILDROOT)$(SYSCONFDIR)/sudoers.d/$(NAME)
install -p -d -m 755 $(BUILDROOT)/$(SHAREDSTATEDIR)/$(NAME)
find samples -type f -exec install -Dm 644 "{}" "$(BUILDROOT)$(SHAREDSTATEDIR)/dci-openshift-agent/{}" \;
chmod 755 "$(BUILDROOT)$(SHAREDSTATEDIR)/dci-openshift-agent/samples/ocp_on_libvirt/ci.sh"