diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6e396ff --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +# Copyright (c) 2021 Jahway603 & The Hush Developers +# Released under the GPLv3 +# +# Hush Lightwalletd Makefile +# author: jahway603 +# +PROJECT_NAME := "lightwalletd" +GOCMD=go +GOTEST=$(GOCMD) test +GOVET=$(GOCMD) vet + +#.PHONY: build + +build: + # Build binary + ./util/build.sh + +clean: + @echo "clean project..." + rm -f $(PROJECT_NAME) diff --git a/README.md b/README.md index c565838..6c1c833 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ You will need Go >= 1.13 which you can download from the official [download page This [installation](https://golang.org/doc/install) document shows how to do it on various OS's. -If you're using Ubuntu, try: +If you're using Ubuntu or Debian, try: ``` $ sudo apt install golang @@ -50,7 +50,7 @@ Then start `hushd` in your command window. You might need to run with `-reindex` Run the build script. ``` -./build.sh +make build ``` #### 3. Get a TLS certificate and run the Lightwalletd frontend @@ -115,7 +115,7 @@ These are the current different command line options for lightwalletd: | CLI option | Default | What it does | |------------|:--------------:|------------------------------:| -| -bind-addr | 127.0.0.1:9069 | address and port to listen on | +| -bind-addr | 127.0.0.1:9067 | address and port to listen on | | -tls-cert | blank | the path to a TLS certificate | | -tls-key | blank | the path to a TLS key file | | -no-tls | false | Disable TLS, serve un-encrypted traffic | diff --git a/build.sh b/util/build.sh similarity index 100% rename from build.sh rename to util/build.sh