forked from opensciencegrid/rsv-perfsonar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 1.63 KB
/
Makefile
File metadata and controls
48 lines (40 loc) · 1.63 KB
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
47
prefix := /usr
localstatedir := /var
sysconfdir := /etc
bindir := $(prefix)/bin
datadir := $(prefix)/share
initrddir := $(sysconfdir)/rc.d/init.d
libexecdir := $(prefix)/libexec
mandir := $(prefix)/share/man
_default:
@echo "No default. Try 'make install'"
install:
# Install executables
install -d $(DESTDIR)/$(libexecdir)/rsv
cp -r libexec/probes $(DESTDIR)/$(libexecdir)/rsv/
cp -r libexec/metrics $(DESTDIR)/$(libexecdir)/rsv/
# Install configuration
install -d $(DESTDIR)/$(sysconfdir)/rsv/meta
cp -r etc/meta/metrics $(DESTDIR)/$(sysconfdir)/rsv/meta/
cp -r etc/metrics $(DESTDIR)/$(sysconfdir)/rsv/
# Install configuration files for message broker
install -d $(DESTDIR)/$(sysconfdir)/rsv/stompclt
cp -r etc/stompclt $(DESTDIR)/$(sysconfdir)/rsv/
# Install the simplevisor init script
install -d $(DESTDIR)/$(initrddir)
install -m 0755 init/simplevisor.init $(DESTDIR)/$(initrddir)/simplevisor
# Install the /var/rsv directory
install -d $(DESTDIR)/$(localstatedir)/rsv
install -d $(DESTDIR)/$(localstatedir)/rsv/localenv
# Install the message passing directory
install -d $(DESTDIR)/$(localstatedir)/run/rsv-perfsonar
#Install condor-cron configs
install -d $(DESTDIR)/$(sysconfdir)/condor-cron/config.d
cp -r etc/condor-cron/config.d $(DESTDIR)/$(sysconfdir)/condor-cron/
# Create the log dirs
install -d $(DESTDIR)/$(localstatedir)/log/rsv/metrics
install -d $(DESTDIR)/$(localstatedir)/log/rsv/probes
# Put log rotation in place
install -d $(DESTDIR)/$(sysconfdir)/logrotate.d
install -m 0644 logrotate/rsv-perfsonar-metrics.logrotate $(DESTDIR)/$(sysconfdir)/logrotate.d/rsv-perfsonar-metrics
.PHONY: _default install