From ec3e950d9e092595969b3a087d7436c2e725fc32 Mon Sep 17 00:00:00 2001 From: "dedal.qq" Date: Sat, 1 Jul 2023 13:50:41 +0300 Subject: [PATCH] small fix --- makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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