diff options
| author | Ben Morrison <ben@gbmor.dev> | 2020-07-01 12:22:39 -0400 |
|---|---|---|
| committer | Ben Morrison <ben@gbmor.dev> | 2020-07-01 12:22:39 -0400 |
| commit | 2de05edac38d943e94b9159e50d8d1d560febd35 (patch) | |
| tree | 244a6d807a10dea328e63759b026882190799c82 | |
| parent | b2b262faa56be956cb515e54db2fa5d016c88c36 (diff) | |
| download | api-master.tar.gz | |
by removing an unnecessary target
| -rw-r--r-- | Makefile | 13 | ||||
| -rw-r--r-- | cache.go | 2 |
2 files changed, 4 insertions, 11 deletions
@@ -9,24 +9,17 @@ api: main.go go.mod .PHONY: clean clean: - @printf "\n%s\n\n" "Cleaning build and module caches..." + @printf "\n%s\n\n" "Cleaning build artifacts..." go clean - go clean -cache -modcache - @printf "\n%s\n\n" "...Done!" - -.PHONY: update -update: - @printf "\n%s\n\n" "Updating from upstream repository..." - git pull --rebase origin master @printf "\n%s\n\n" "...Done!" .PHONY: install install: @printf "\n%s\n\n%s\n" "Installing ..." "Creating Directories ..." - mkdir -p $(BINDIR)/web + mkdir -p $(BINDIR)/static @printf "\n%s\n" "Copying files..." install -m755 api $(BINDIR) - install -m644 web/* $(BINDIR) + install -m644 static/* $(BINDIR) @printf "\n%s\n" "Setting ownership..." chown -R www:www $(BINDIR) @printf "\n%s\n\n" "...Done!" @@ -93,7 +93,7 @@ func (cache *cacheWrapper) bap(requestPath string) error { bytes, err = pkgsQuery(format) default: if requestPath == "/" { - bytes, err = ioutil.ReadFile("web/index.txt") + bytes, err = ioutil.ReadFile("static/index.txt") } else { err = errors.New("Invalid Query Type") } |