From 0c9fa9f569293c786169eb0e330c071db30d9502 Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Thu, 4 Apr 2019 11:19:57 -0400 Subject: [PATCH] Update readme and tweak build - Tweaked the build to copy `settings_example.json` to `settings.json` if it doesn't exist. - Updated the readme to reflect changes with modules and the Makefile. --- Makefile | 7 ++++++- readme.md | 8 ++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index dce4af0..2b174b9 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ TAGS= .PHONY: fmt vet get clean dev setdev test -all: fmt vet test MovieNight MovieNight.exe static/main.wasm +all: fmt vet test MovieNight MovieNight.exe static/main.wasm settings.json setdev: $(eval export TAGS=-tags "dev") @@ -33,3 +33,8 @@ vet: test: go test $(TAGS) ./... + +# Do not put settings_example.json here as a prereq to avoid overwriting +# the settings if the example is updated. +settings.json: + cp settings_example.json settings.json diff --git a/readme.md b/readme.md index bcd5dcb..edb1773 100644 --- a/readme.md +++ b/readme.md @@ -16,11 +16,11 @@ online. To just download and run: ```bash -$ go get -u -v github.com/zorchenhimer/MovieNight -$ cd $GOROOT/src/zorchenhimer/MovieNight +$ git clone https://github.com/zorchenhimer/MovieNight +$ cd MovieNight +$ make get # only needs to be run once $ make -$ cp settings_example.json settings.json -$ MovieNight -l :8089 -k longSecurityKey +$ ./MovieNight ``` ## Usage