update build.sh to use in repo source for daemon
This commit is contained in:
parent
3a6cbf9de6
commit
f0b3de1c6e
16
build.sh
16
build.sh
@ -109,14 +109,10 @@ if [ "$ipfs" == "yes" ] ; then
|
||||
echo -e "Built\n"
|
||||
echo "Now configure NNTPChan with ./srndv2 setup"
|
||||
else
|
||||
if [ "$unstable" == "yes" ] ; then
|
||||
make -C contrib/backends/srndv2
|
||||
cp contrib/backends/srndv2/nntpchand "$root/nntpchan"
|
||||
echo "built unstable, if you don't know what to do, run without --unstable"
|
||||
else
|
||||
go get -u -v $tags github.com/majestrate/srndv2
|
||||
cp "$GOPATH/bin/srndv2" "$root"
|
||||
echo -e "Built\n"
|
||||
echo "Now configure NNTPChan with ./srndv2 setup"
|
||||
fi
|
||||
echo "building the daemon..."
|
||||
echo
|
||||
make -C contrib/backends/srndv2
|
||||
cp contrib/backends/srndv2/srndv2 .
|
||||
echo "built"
|
||||
echo "now configure NNTPChan with ./srndv2 setup"
|
||||
fi
|
||||
|
@ -1,6 +1,8 @@
|
||||
REPO=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
|
||||
all: srndv2
|
||||
all: clean build
|
||||
|
||||
build: srndv2
|
||||
|
||||
srndv2:
|
||||
GOPATH=$(REPO) go build -v
|
||||
|
Reference in New Issue
Block a user