Updated makefile
This commit is contained in:
parent
2729030140
commit
b8e0964fd7
6
makefile
6
makefile
@ -5,6 +5,7 @@ GOBUILD=$(GOCMD) build
|
||||
GOINSTALL=$(GOCMD) install
|
||||
GOTEST=$(GOCMD) test
|
||||
BUILDJOBS=@./jobs/build.sh
|
||||
IPTABLES=@sudo iptables
|
||||
|
||||
server:
|
||||
$(GOBUILD)
|
||||
@ -18,6 +19,9 @@ bench:
|
||||
$(GOTEST) -bench .
|
||||
depslist:
|
||||
$(GOCMD) list -f {{.Deps}} | sed -e 's/\[//g' -e 's/\]//g' | tr " " "\n"
|
||||
all: server jobs
|
||||
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: server jobs ports
|
||||
|
||||
.PHONY: jobs
|
Loading…
Reference in New Issue
Block a user