19 lines
348 B
Makefile
19 lines
348 B
Makefile
BINARY = s3share
|
|
BUILD_DIR = build
|
|
|
|
.PHONY: all
|
|
all: clean build
|
|
|
|
.PHONY:build
|
|
build: $(BUILD_DIR)/$(BINARY) $(BUILD_DIR)/public
|
|
|
|
$(BUILD_DIR)/$(BINARY):
|
|
go build -o $(BUILD_DIR)/$(BINARY) cmd/s3share.go
|
|
|
|
$(BUILD_DIR)/public:
|
|
npm run build && cp -r public/ $(BUILD_DIR)/public
|
|
|
|
.PHONY:clean
|
|
clean:
|
|
rm -rf $(BUILD_DIR) && rm -rf public/build/
|