small fix

This commit is contained in:
dedal.qq 2023-07-01 13:50:41 +03:00
parent 914d9d0b54
commit ec3e950d9e

View File

@ -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