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
|
#!/bin/sh
|
||||||
MYDIR="$(dirname "$(realpath "$0")")"
|
MYDIR="$(dirname "$(realpath "$0")")"
|
||||||
cd "$MYDIR"
|
cd "$MYDIR"
|
||||||
|
go build
|
||||||
for dir in ./*; do ([ -d "$dir" ] && cd "$dir" && echo "Building jobs/$dir" && go build); done
|
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
|
GOTEST=$(GOCMD) test
|
||||||
BUILDJOBS=@./jobs/build.sh
|
BUILDJOBS=@./jobs/build.sh
|
||||||
BUILDPATCHES=@./patches/build.sh
|
BUILDPATCHES=@./patches/build.sh
|
||||||
|
BUILDBOTS=@./bots/build.sh
|
||||||
TSCMD=@tsc
|
TSCMD=@tsc
|
||||||
IPTABLES=@sudo iptables
|
IPTABLES=@sudo iptables
|
||||||
|
|
||||||
@ -13,6 +14,8 @@ server:
|
|||||||
$(GOBUILD)
|
$(GOBUILD)
|
||||||
jobs:
|
jobs:
|
||||||
$(BUILDJOBS)
|
$(BUILDJOBS)
|
||||||
|
bots:
|
||||||
|
$(BUILDBOTS)
|
||||||
patches:
|
patches:
|
||||||
$(BUILDPATCHES)
|
$(BUILDPATCHES)
|
||||||
js:
|
js:
|
||||||
@ -42,6 +45,6 @@ clean:
|
|||||||
ports:
|
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 80 -j REDIRECT --to-port 4000
|
||||||
$(IPTABLES) -t nat -A OUTPUT -o lo -p tcp --dport 443 -j REDIRECT --to-port 4001
|
$(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