diff --git a/makefile b/makefile index 7869313..a0ce4bc 100644 --- a/makefile +++ b/makefile @@ -1,4 +1,4 @@ -.PHONY: build +.PHONY: all build install all: build @@ -6,3 +6,8 @@ build: build/files-server build/files-server: cmd/file-server/main.go internal/handler/*.go go build -o build/files-server cmd/file-server/main.go + +install: build + mkdir -p /usr/share/file-server/static + install -m755 -t /usr/share/file-server build/files-server + install -m755 -t /usr/share/file-server/static static/main.html