make file to build and install

This commit is contained in:
Dan Ballard 2014-12-30 08:41:40 -08:00
parent 059ce9875c
commit 4e370c272b
1 changed files with 24 additions and 0 deletions

24
Makefile Normal file
View File

@ -0,0 +1,24 @@
all: warren warrend
warren: cmd/warren/warren
warrend: cmd/warrend/warrend
cmd/warren/warren: cmd/warren/*.go
cd cmd/warren && go build && ./warren build
cmd/warrend/warrend: cmd/warren/warren cmd/warrend/*.go
cd cmd/warrend && ./../warren/warren build
clean:
rm -f cmd/warren/warren cmd/warrend/warrend
install:
cp cmd/warren/warren /usr/bin
cp cmd/warrend/warrend /usr/bin
uninstall:
rm /usr/bin/warren
rm /usr/bin/warrend