File: Makefile

package info (click to toggle)
pluginhook 0~20150216.0~a320158-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 140 kB
  • ctags: 9
  • sloc: sh: 57; makefile: 24; python: 2; ruby: 1
file content (19 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
VERSION = 0.1.1

build: pluginhook

pluginhook:
	go build -o pluginhook
	GOOS=linux go build -o pluginhook.linux

test: build
	PLUGIN_PATH=./tests/plugins BIN=./pluginhook tests/run_tests.sh

package: test build
	rm -rf package
	mkdir -p package/bin
	mv pluginhook.linux package/bin/pluginhook
	cd package && fpm -s dir -t deb -n pluginhook -v ${VERSION} --prefix /usr/local bin

release: package
	s3cmd -P put package/pluginhook_${VERSION}_amd64.deb s3://progrium-pluginhook