-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (29 loc) · 981 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright 2023 Ben Vogt. All rights reserved.
target:
mkdir -p target
target/output: target
mkdir -p target/output
clean:
rm -rf target
deps:
go mod download
fmt:
go fmt
install:
go install
target/gshr.bin: Makefile target $(wildcard *.go)
go build -o target/gshr.bin $(wildcard *.go)
build: Makefile target target/output target/gshr.bin
@# intentionally blank, proxy for prerequisite.
dev: Makefile target target/output target/gshr.bin
./target/gshr.bin -c=dev-config-gshr.toml -o=target/output && \
cd target/output && \
python3 -m http.server 80
dev-example-go-git: Makefile target target/output target/gshr.bin
./target/gshr.bin -c=example-config-gshr-simple.toml -o=target/output && \
cd target/output && \
python3 -m http.server 80
dev-example-gshr-simple: Makefile target target/output target/gshr.bin
./target/gshr.bin -c=example-config-gshr-simple.toml -o=target/output && \
cd target/output && \
python3 -m http.server 80