moved mkdir to build directive

This commit is contained in:
Brad Rydzewski 2014-07-09 01:22:08 -07:00
parent fbda588d87
commit 8f9c3da81b

View file

@ -13,6 +13,7 @@ deps:
go list github.com/drone/drone/... | xargs go get -t -v go list github.com/drone/drone/... | xargs go get -t -v
build: build:
mkdir -p debian/drone/usr/local/bin
go build -o debian/drone/usr/local/bin/drone -ldflags "-X main.revision $(SHA)" github.com/drone/drone/client go build -o debian/drone/usr/local/bin/drone -ldflags "-X main.revision $(SHA)" github.com/drone/drone/client
go build -o debian/drone/usr/local/bin/droned -ldflags "-X main.revision $(SHA)" github.com/drone/drone/server go build -o debian/drone/usr/local/bin/droned -ldflags "-X main.revision $(SHA)" github.com/drone/drone/server
@ -44,5 +45,4 @@ lessc:
# creates a debian package for drone to install # creates a debian package for drone to install
# `sudo dpkg -i drone.deb` # `sudo dpkg -i drone.deb`
deb: deb:
mkdir -p debian/drone/usr/local/bin
dpkg-deb --build debian/drone dpkg-deb --build debian/drone