Makefile - staticgit - A git static site generator in GO with HTML output!
(HTM) git clone git://jay.scot/staticgit
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
Makefile (659B)
---
1 APP_NAME := staticgit
2 BUILD_DIR := build
3 GO_FLAGS := -ldflags="-s -w"
4
5 .PHONY: all run build clean fmt vet check
6
7 all: run
8
9 run:
10 @echo "Running $(APP_NAME)..."
11 @go run ./cmd/staticgit -p ./git -o tmp -i .ssh,jay.scot,internal-docs
12
13 build:
14 @echo "Building $(APP_NAME) for local architecture..."
15 @go build $(GO_FLAGS) -o $(BUILD_DIR)/$(APP_NAME) ./cmd/staticgit
16 @echo "Binary created at $(BUILD_DIR)/$(APP_NAME)"
17
18 fmt:
19 @echo "Running gofmt..."
20 @gofmt -l -s -w .
21
22 vet:
23 @echo "Running govet..."
24 @go vet ./...
25
26 clean:
27 @echo "Cleaning build directory..."
28 @rm -rf $(BUILD_DIR)
29 @echo "Build directory cleaned."
30
31 check: fmt vet
32 @echo "All checks passed."