-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
38 lines (28 loc) · 1.6 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
NAME = dci-openshift-app-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-app-agent/ansible.cfg
install -p -D -m 644 dci-openshift-app-agent.yml $(BUILDROOT)$(DATADIR)/dci-openshift-app-agent/dci-openshift-app-agent.yml
for hook in hooks/*.yml; do \
install -p -D -m 644 $$hook $(BUILDROOT)$(SYSCONFDIR)/dci-openshift-app-agent/$$hook; \
done
install -p -D -m 644 dcirc.sh.dist $(BUILDROOT)$(SYSCONFDIR)/dci-openshift-app-agent/dcirc.sh.dist
install -p -D -m 644 hosts.yml $(BUILDROOT)$(SYSCONFDIR)/dci-openshift-app-agent/hosts.yml
install -p -D -m 644 sysconfig/dci-openshift-app-agent $(BUILDROOT)$(SYSCONFDIR)/sysconfig/dci-openshift-app-agent
for play in plays/*.yml; do \
install -p -D -m 644 $$play $(BUILDROOT)$(DATADIR)/dci-openshift-app-agent/$$play; \
done
for internal_registry_file in utilities/internal-registry/*.yml; do \
install -p -D -m 644 $$internal_registry_file $(BUILDROOT)$(DATADIR)/dci-openshift-app-agent/$$internal_registry_file; \
done
for script in plays/scripts/*; do \
install -p -D -m 755 $$script $(BUILDROOT)$(DATADIR)/dci-openshift-app-agent/$$script; \
done
install -p -D -m 644 group_vars/all $(BUILDROOT)$(DATADIR)/dci-openshift-app-agent/group_vars/all
install -p -D -m 440 dci-openshift-app-agent.sudo $(BUILDROOT)$(SYSCONFDIR)/sudoers.d/$(NAME)
install -p -d -m 755 $(BUILDROOT)/$(SHAREDSTATEDIR)/$(NAME)
find samples -type f -exec install -v -p -D -m 644 "{}" "$(BUILDROOT)$(SHAREDSTATEDIR)/dci-openshift-app-agent/{}" \;