Skip to content

Commit

Permalink
adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Apr 20, 2017
1 parent c228b43 commit 66446a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ deb: build
cp build/mackerel-plugin-* packaging/deb/debian/
cd packaging/deb && debuild --no-tgz-check -rfakeroot -uc -us

rpm-v1: build/mackerel-plugin
rpm-v2:
make build/mackerel-plugin GOOS=linux GOARCH=amd64
docker run --rm -v "$(PWD)":/workspace -v "$(PWD)/rpmbuild":/rpmbuild astj/mackerel-rpm-builder:c7 \
--define "_sourcedir /workspace" \
--define "_version ${CURRENT_VERSION}" --define "buildarch x86_64" \
-bb packaging/rpm/mackerel-agent-plugins-v1.spec
-bb packaging/rpm/mackerel-agent-plugins-v2.spec

clean:
if [ -d build ]; then \
Expand All @@ -72,4 +73,4 @@ clean:
release:
tool/releng

.PHONY: all build test testgo deps testdeps rpm deb rpm-v1 clean release lint cover testtool testconvention
.PHONY: all build test testgo deps testdeps rpm deb rpm-v2 clean release lint cover testtool testconvention

0 comments on commit 66446a1

Please sign in to comment.