-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 822 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 822 Bytes
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
VERSION=1.0.5
GOCMD=go
GOBUILD=$(GOCMD) build
INGESTER=ccsyslogingesterservice/main.go
SHIPPER=ccsyslogshipperservice/main.go
INGESTER_BIN=ccsyslogingesterservice
SHIPPER_BIN=ccsyslogshipperservice
CMD=cmd/
clean:
rm -rf bin/*
build:
$(GOBUILD) -o bin/$(INGESTER_BIN) $(CMD)$(INGESTER)
$(GOBUILD) -o bin/$(SHIPPER_BIN) $(CMD)$(SHIPPER)
build_dpkg:
$(GOBUILD) -o bin/$(INGESTER_BIN) $(CMD)$(INGESTER)
$(GOBUILD) -o bin/$(SHIPPER_BIN) $(CMD)$(SHIPPER)
mkdir -p dpkg/ccsyslogingester_$(VERSION)-0ubuntu_amd64/usr/bin
cp bin/cc* dpkg/ccsyslogingester_$(VERSION)-0ubuntu_amd64/usr/bin/
cp -R dpkg-skel/ccsyslogingester_VERSION-0ubuntu_amd64/* dpkg/ccsyslogingester_$(VERSION)-0ubuntu_amd64/
dpkg-deb --build dpkg/ccsyslogingester_$(VERSION)-0ubuntu_amd64
mv dpkg/ccsyslogingester_$(VERSION)-0ubuntu_amd64.deb .