Introduction
Introduction Statistics Contact Development Disclaimer Help
Makefile - staticgit - A git static site generator in GO with HTML output!
git clone git://jay.scot/staticgit
Log
Files
Refs
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,interna…
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."
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.