Makefile 815 Bytes
Newer Older
Axel Auweter's avatar
Axel Auweter committed
1
2
3
4
5
6
7
include ../config.mk

.PHONY : clean install all

all:

install:
8
	echo "Installing scripts"
Axel Auweter's avatar
Axel Auweter committed
9
10
11
12
	# Install SysV init.d script
	mkdir -p $(DCDBDEPLOYPATH)/etc/init.d/
	sed -e 's|%DCDB_PREFIX%|'$(DCDBDEPLOYPATH)'|g' dcdb_init > $(DCDBDEPLOYPATH)/etc/init.d/dcdb
	chmod +x $(DCDBDEPLOYPATH)/etc/init.d/dcdb
13
14
15
16
17

	# Install systemd scripts
	mkdir -p $(DCDBDEPLOYPATH)/etc/systemd/system
	sed -e 's|%DCDB_PREFIX%|'$(DCDBDEPLOYPATH)'|g' cassandra.service > $(DCDBDEPLOYPATH)/etc/systemd/system/cassandra.service
	sed -e 's|%DCDB_PREFIX%|'$(DCDBDEPLOYPATH)'|g' collectagent.service > $(DCDBDEPLOYPATH)/etc/systemd/system/collectagent.service
Axel Auweter's avatar
Axel Auweter committed
18
	
Axel Auweter's avatar
Axel Auweter committed
19
	# Install dcdbplot
Axel Auweter's avatar
Axel Auweter committed
20
	install -m 755 dcdbplot $(DCDBDEPLOYPATH)/bin/dcdbplot
21
22
23

	# Install dcdb.bash
	sed -e 's|%DCDB_PREFIX%|'$(DCDBDEPLOYPATH)'|g' dcdb.bash > $(DCDBDEPLOYPATH)/dcdb.bash