forked from GlobalNOC/simp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
65 lines (60 loc) · 2.92 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
NAME=simp
VERSION=1.0.6
rpm: dist
rpmbuild -ta dist/simp-poller-$(VERSION).tar.gz
rpmbuild -ta dist/simp-data-$(VERSION).tar.gz
rpmbuild -ta dist/simp-comp-$(VERSION).tar.gz
rpmbuild -ta dist/simp-tsds-$(VERSION).tar.gz
test:
/usr/bin/perl -I ./lib t/TEST $(TEST_VERBOSE)
test_jenkins:
/usr/bin/perl -I ./lib t/TEST $(TEST_VERBOSE) --formatter=TAP::Formatter::Console
clean:
rm -rf dist
rm -rf tap
rm -rf cover_db
dist:
rm -rf dist
mkdir -p dist/simp-data-$(VERSION)/lib/GRNOC/Simp
mkdir -p dist/simp-data-$(VERSION)/bin
mkdir -p dist/simp-data-$(VERSION)/conf
mkdir -p dist/simp-comp-$(VERSION)/lib/GRNOC/Simp
mkdir -p dist/simp-comp-$(VERSION)/bin
mkdir -p dist/simp-comp-$(VERSION)/conf
mkdir -p dist/simp-poller-$(VERSION)/lib/GRNOC/Simp
mkdir -p dist/simp-poller-$(VERSION)/bin
mkdir -p dist/simp-poller-$(VERSION)/conf/hosts.d
mkdir -p dist/simp-tsds-$(VERSION)/lib/GRNOC/Simp
mkdir -p dist/simp-tsds-$(VERSION)/bin
mkdir -p dist/simp-tsds-$(VERSION)/conf
cp -r lib/GRNOC/Simp/Poller* dist/simp-poller-$(VERSION)/lib/GRNOC/Simp
cp -r lib/GRNOC/Simp/Data* dist/simp-data-$(VERSION)/lib/GRNOC/Simp
cp -r lib/GRNOC/Simp/Comp* dist/simp-comp-$(VERSION)/lib/GRNOC/Simp
cp -r lib/GRNOC/Simp/TSDS* dist/simp-tsds-$(VERSION)/lib/GRNOC/Simp
cp -r bin/simp-comp.pl dist/simp-comp-$(VERSION)/bin/
cp -r bin/simp-data.pl dist/simp-data-$(VERSION)/bin/
cp -r bin/simp-poller.pl dist/simp-poller-$(VERSION)/bin/
cp -r bin/simp-tsds.pl dist/simp-tsds-$(VERSION)/bin/
cp -r conf/compDataConfig.xml dist/simp-comp-$(VERSION)/conf/
cp -r conf/logging.conf dist/simp-comp-$(VERSION)/conf/
cp -r conf/simp_comp.init dist/simp-comp-$(VERSION)/conf/
cp -r conf/simpDataConfig.xml dist/simp-data-$(VERSION)/conf/
cp -r conf/logging.conf dist/simp-data-$(VERSION)/conf/
cp -r conf/simp_data.init dist/simp-data-$(VERSION)/conf/
cp -r conf/config.xml dist/simp-poller-$(VERSION)/conf/
cp -r conf/logging.conf dist/simp-poller-$(VERSION)/conf/
cp -r conf/simp-poller.init dist/simp-poller-$(VERSION)/conf/
cp -r conf/hosts.d/* dist/simp-poller-$(VERSION)/conf/hosts.d/
cp -r conf/simp-tsds.xml dist/simp-tsds-$(VERSION)/conf/
cp -r conf/logging.conf dist/simp-tsds-$(VERSION)/conf/
cp -r conf/simp-tsds.init dist/simp-tsds-$(VERSION)/conf/
cp -r conf/simp-tsds.systemd dist/simp-tsds-$(VERSION)/conf/
cp -r simp-data.spec dist/simp-data-$(VERSION)/
cp -r simp-comp.spec dist/simp-comp-$(VERSION)/
cp -r simp-poller.spec dist/simp-poller-$(VERSION)/
cp -r simp-tsds.spec dist/simp-tsds-$(VERSION)/
cp -r conf/sysconfig dist/simp-tsds-$(VERSION)/conf/
cd dist; tar -czvf simp-poller-$(VERSION).tar.gz simp-poller-$(VERSION)/ --exclude .svn --exclude .git
cd dist; tar -czvf simp-data-$(VERSION).tar.gz simp-data-$(VERSION)/ --exclude .svn --exclude .git
cd dist; tar -czvf simp-comp-$(VERSION).tar.gz simp-comp-$(VERSION)/ --exclude .svn --exclude .git
cd dist; tar -czvf simp-tsds-$(VERSION).tar.gz simp-tsds-$(VERSION)/ --exclude .svn --exclude .git