Updated makefiles
This commit is contained in:
parent
808a29756d
commit
7add32b4a7
4
bots/build.sh
Executable file
4
bots/build.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
MYDIR="$(dirname "$(realpath "$0")")"
|
||||
cd "$MYDIR"
|
||||
for dir in ./*; do ([ -d "$dir" ] && cd "$dir" && echo "Building bots/$dir" && go build); done
|
@ -1,4 +1,5 @@
|
||||
#!/bin/sh
|
||||
MYDIR="$(dirname "$(realpath "$0")")"
|
||||
cd "$MYDIR"
|
||||
go build
|
||||
for dir in ./*; do ([ -d "$dir" ] && cd "$dir" && echo "Building jobs/$dir" && go build); done
|
7
makefile
7
makefile
@ -6,6 +6,7 @@ GOINSTALL=$(GOCMD) install
|
||||
GOTEST=$(GOCMD) test
|
||||
BUILDJOBS=@./jobs/build.sh
|
||||
BUILDPATCHES=@./patches/build.sh
|
||||
BUILDBOTS=@./bots/build.sh
|
||||
TSCMD=@tsc
|
||||
IPTABLES=@sudo iptables
|
||||
|
||||
@ -13,6 +14,8 @@ server:
|
||||
$(GOBUILD)
|
||||
jobs:
|
||||
$(BUILDJOBS)
|
||||
bots:
|
||||
$(BUILDBOTS)
|
||||
patches:
|
||||
$(BUILDPATCHES)
|
||||
js:
|
||||
@ -42,6 +45,6 @@ clean:
|
||||
ports:
|
||||
$(IPTABLES) -t nat -A OUTPUT -o lo -p tcp --dport 80 -j REDIRECT --to-port 4000
|
||||
$(IPTABLES) -t nat -A OUTPUT -o lo -p tcp --dport 443 -j REDIRECT --to-port 4001
|
||||
all: assets server jobs patches
|
||||
all: assets server bots jobs patches
|
||||
|
||||
.PHONY: jobs patches ports
|
||||
.PHONY: bots jobs patches ports
|
||||
|
Loading…
Reference in New Issue
Block a user