Updated makefiles

This commit is contained in:
Eduard Urbach 2017-07-17 22:50:14 +02:00
parent 808a29756d
commit 7add32b4a7
3 changed files with 10 additions and 2 deletions

4
bots/build.sh Executable file
View 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

View File

@ -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

View File

@ -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