Files
kisukalat.go/Makefile
2025-09-23 19:51:11 +03:00

16 lines
384 B
Makefile

BINARY=kisurun
BUILD_DIR=build
build:
@echo "Building $(BINARY)..."
go build -o $(BUILD_DIR)/$(BINARY) .
@echo "Copying templates and static..."
mkdir -p $(BUILD_DIR)/templates
mkdir -p $(BUILD_DIR)/static
mkdir -p $(BUILD_DIR)/pages
cp -r templates/* $(BUILD_DIR)/templates/
cp -r pages/* $(BUILD_DIR)/pages/
cp -r static/* $(BUILD_DIR)/static/
clean:
rm -rf $(BUILD_DIR)