Archived
1
0

update build.sh to use in repo source for daemon

This commit is contained in:
Jeff Becker 2017-04-03 10:05:28 -04:00
parent 3a6cbf9de6
commit f0b3de1c6e
2 changed files with 9 additions and 11 deletions

View File

@ -109,14 +109,10 @@ if [ "$ipfs" == "yes" ] ; then
echo -e "Built\n" echo -e "Built\n"
echo "Now configure NNTPChan with ./srndv2 setup" echo "Now configure NNTPChan with ./srndv2 setup"
else else
if [ "$unstable" == "yes" ] ; then echo "building the daemon..."
make -C contrib/backends/srndv2 echo
cp contrib/backends/srndv2/nntpchand "$root/nntpchan" make -C contrib/backends/srndv2
echo "built unstable, if you don't know what to do, run without --unstable" cp contrib/backends/srndv2/srndv2 .
else echo "built"
go get -u -v $tags github.com/majestrate/srndv2 echo "now configure NNTPChan with ./srndv2 setup"
cp "$GOPATH/bin/srndv2" "$root"
echo -e "Built\n"
echo "Now configure NNTPChan with ./srndv2 setup"
fi
fi fi

View File

@ -1,6 +1,8 @@
REPO=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) REPO=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
all: srndv2 all: clean build
build: srndv2
srndv2: srndv2:
GOPATH=$(REPO) go build -v GOPATH=$(REPO) go build -v