diff --git a/Makefile b/Makefile index 6eb03ed..3e78265 100644 --- a/Makefile +++ b/Makefile @@ -4,23 +4,29 @@ VERSION=$(shell cat VERSION) GCFLAGS=-gcflags '-e' LDFLAGS=-ldflags '-X main.version=$(VERSION) -s -w' PROGRAM=docstore -ENV=CGO_ENABLED=0 +ENV=CGO_ENABLED=0 GO111MODULE=on all: $(PROGRAM) setup: $(CC) get github.com/client9/misspell -vendor: clean codeqa +release: clean generate gofmt codeqa + $(ENV) $(CC) $(BUILD) $(LDFLAGS) + +release-vendor: clean generate gofmt codeqa $(ENV) $(CC) $(BUILD) -mod=vendor $(LDFLAGS) -$(PROGRAM): clean codeqa +vendor: clean generate gofmt + $(ENV) $(CC) $(BUILD) -mod=vendor $(LDFLAGS) + +$(PROGRAM): clean generate gofmt $(ENV) $(CC) $(BUILD) $(LDFLAGS) clean: $(CC) clean -x -codeqa: generate gofmt misspell golint test +codeqa: misspell golint test generate: $(CC) generate @@ -45,4 +51,4 @@ else $(info skipping tests of other platforms) endif -.PHONY: setup vendor build clean codeqa generate gofmt golint misspell test +.PHONY: setup release release-vendor vendor build clean codeqa generate gofmt golint misspell test diff --git a/README.md b/README.md index a15d39d..c4926d5 100644 --- a/README.md +++ b/README.md @@ -25,3 +25,31 @@ GOOS=openbsd make vendor ## Install See the `scripts/` directory on how to install docstore on OpenBSD. + +## Config + +``` +{ + "run_dir": "/var/lib/docstore", // running directory. data will be stored here + "user": "docstore", // drop privileges to user + "group": "docstore", // drop privileges to group + "listen_addr": "127.0.0.1:8080", // listening
:This file is indexed but has been removed from the file system.
+Do you want to delete this entry from the index?
+This file is indexed but has been removed from the file system.
+Do you want to delete this entry from the index?
+