gshr
git static host repo -- generates static html for repos
git clone https://git.vogt.world/gshr.git
Log | Files | README.md | LICENSE
← All files
name: Makefile
-rw-r--r--
981
 1# Copyright 2023 Ben Vogt. All rights reserved.
 2
 3target:
 4	mkdir -p target
 5
 6target/output: target
 7	mkdir -p target/output
 8
 9clean:
10	rm -rf target
11
12deps:
13	go mod download
14
15fmt:
16	go fmt
17
18install:
19	go install
20
21target/gshr.bin: Makefile target $(wildcard *.go)
22	go build -o target/gshr.bin $(wildcard *.go)
23
24build: Makefile target target/output  target/gshr.bin
25	@# intentionally blank, proxy for prerequisite.
26
27dev: Makefile target target/output target/gshr.bin
28	./target/gshr.bin -c=dev-config-gshr.toml -o=target/output && \
29    cd target/output && \
30    python3 -m http.server 80
31
32dev-example-go-git: Makefile target target/output target/gshr.bin
33	./target/gshr.bin -c=example-config-gshr-simple.toml -o=target/output && \
34    cd target/output && \
35    python3 -m http.server 80
36
37dev-example-gshr-simple: Makefile target target/output target/gshr.bin
38	./target/gshr.bin -c=example-config-gshr-simple.toml -o=target/output && \
39    cd target/output && \
40    python3 -m http.server 80