-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (25 loc) · 842 Bytes
/
Makefile
File metadata and controls
37 lines (25 loc) · 842 Bytes
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
.PHONY: build run clean
-include config.mk
args?=-port 3000
build:
go build -o dndbotwww ./srv
book: build
./book
run: fmt build
killall dndbotwww; true
./dndbotwww $(args)
clean:
mv paywallet ../paywallet.bak; true
rm -frv dndbot dndbotwww profile outputs payments paywallet tmp *.log
fmt:
find . -name '*.go' -exec gofumpt -w -s -extra {} \;
doc:
find srv/ui/ -name '*.go' -exec code2prompt --template ~/code2prompt/templates/document-the-code.hbs --output {}.md {} \;
fox:
rm -rf profile
mkdir profile
firefox --profile profile http://localhost:3000
docker:
docker build -t dndbot .
docker-run:
docker run -e CLAUDE_API_KEY=$(CLAUDE_API_KEY) -e HORDE_API_KEY=$(HORDE_API_KEY) --restart=always --cap-drop=SETUID --cap-drop=NET_BIND_SERVICE --publish 443:443 --publish 80:80 --name dndbot dndbotbookcompiler/book.go