Skip to content

Commit 256a1e8

Browse files
committed
feat: revamp homepage
1 parent b436392 commit 256a1e8

6 files changed

Lines changed: 1207 additions & 195 deletions

File tree

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
all:
22
@make build
33

4+
# Build with embedded commit hash (set COMMIT env var or default to current git HEAD)
45
COMMIT ?= $(shell git rev-parse HEAD 2>/dev/null || echo "")
5-
COMMIT_SHORT ?= $(shell echo $(COMMIT) | cut -c1-7)
66
LDFLAGS ?= -X main.CommitHash=$(COMMIT)
77
build:
8-
@echo "anna: building with commit $(COMMIT_SHORT)"
8+
@echo "anna: building with commit $(COMMIT)"
99
@go build -ldflags "$(LDFLAGS)"
1010
@./anna
1111

1212
serve:
1313
@echo "anna: serving site"
1414
@go build
15-
@./anna -s "site/"
15+
@./anna -s -p "site"
1616
tests:
1717
@echo "anna: running all tests"
1818
@go test ./...
@@ -26,5 +26,3 @@ clean:
2626
@cd test/
2727
@rm -rf `find . -type d -name rendered`
2828
@cd ../
29-
30-
# Build with embedded commit hash (set COMMIT env var or default to current git HEAD)

0 commit comments

Comments
 (0)