2023-11-04 05:08:46 +00:00
|
|
|
all: cmds external
|
|
|
|
|
2023-11-04 05:09:33 +00:00
|
|
|
install: all
|
2024-08-30 02:06:24 +00:00
|
|
|
cp bin/tma /town/bin/
|
2023-11-04 05:09:33 +00:00
|
|
|
cp bin/launcher /usr/local/bin/town
|
|
|
|
cp bin/stats /town/bin/
|
|
|
|
cp bin/contrib /town/bin/
|
|
|
|
cp bin/request /town/bin/
|
|
|
|
cp bin/appendkeyfile /town/bin/
|
|
|
|
cp bin/createkeyfile /town/bin/
|
|
|
|
cp bin/emailtouser /town/bin/
|
|
|
|
cp bin/registeruser /town/bin/
|
2023-11-04 05:11:36 +00:00
|
|
|
cp bin/help /town/bin/external/
|
2023-11-04 05:09:33 +00:00
|
|
|
cp bin/welcome /town/bin/external/
|
|
|
|
cp bin/signup /town/bin/external/
|
2024-08-30 02:06:24 +00:00
|
|
|
cp bin/review /town/bin/
|
2023-11-04 05:09:33 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf bin
|
|
|
|
|
2023-11-04 05:08:46 +00:00
|
|
|
external: bin/help bin/welcome bin/signup exthelpers
|
|
|
|
|
|
|
|
bin/help: external/cmd/help/main.go bin
|
|
|
|
go build -o bin/help ./external/cmd/help
|
|
|
|
|
|
|
|
bin/welcome: external/cmd/welcome/main.go bin
|
|
|
|
go build -o bin/welcome ./external/cmd/welcome
|
|
|
|
|
|
|
|
bin/signup: external/cmd/signup/main.go bin
|
|
|
|
go build -o bin/signup ./external/cmd/signup
|
|
|
|
|
|
|
|
exthelpers: bin/appendkeyfile bin/createkeyfile bin/emailtouser bin/registeruser
|
|
|
|
|
|
|
|
bin/appendkeyfile: external/cmd/helpers/appendkeyfile/main.go bin
|
|
|
|
go build -o bin/appendkeyfile ./external/cmd/helpers/appendkeyfile
|
|
|
|
|
|
|
|
bin/createkeyfile: external/cmd/helpers/createkeyfile/main.go bin
|
|
|
|
go build -o bin/createkeyfile ./external/cmd/helpers/createkeyfile
|
|
|
|
|
|
|
|
bin/emailtouser: external/cmd/helpers/emailtouser/main.go bin
|
|
|
|
go build -o bin/emailtouser ./external/cmd/helpers/emailtouser
|
|
|
|
|
|
|
|
bin/registeruser: external/cmd/helpers/registeruser/main.go bin
|
|
|
|
go build -o bin/registeruser ./external/cmd/helpers/registeruser
|
|
|
|
|
2024-08-30 02:06:24 +00:00
|
|
|
cmds: bin/launcher bin/stats bin/contrib bin/request bin/review bin/tma
|
2023-11-04 05:08:46 +00:00
|
|
|
|
|
|
|
bin/launcher: cmd/launcher/main.go bin
|
|
|
|
go build -o bin/launcher ./cmd/launcher
|
|
|
|
|
|
|
|
bin/stats: cmd/stats/main.go bin
|
|
|
|
go build -o bin/stats ./cmd/stats
|
|
|
|
|
|
|
|
bin/contrib: cmd/contrib/main.go bin
|
|
|
|
go build -o bin/contrib ./cmd/contrib
|
|
|
|
|
|
|
|
bin/request: cmd/request/main.go bin
|
|
|
|
go build -o bin/request ./cmd/request
|
|
|
|
|
2024-08-30 02:06:24 +00:00
|
|
|
bin/review: cmd/review/main.go bin
|
|
|
|
go build -o bin/review ./cmd/review
|
|
|
|
|
|
|
|
bin/tma: cmd/tma/main.go bin
|
|
|
|
go build -o bin/tma ./cmd/tma
|
|
|
|
|
2023-11-04 05:08:46 +00:00
|
|
|
bin:
|
|
|
|
mkdir -p bin
|