Improved makefile
This commit is contained in:
4
makefile
4
makefile
@ -28,10 +28,10 @@ assets:
|
||||
depslist:
|
||||
$(GOCMD) list -f {{.Deps}} | sed -e 's/\[//g' -e 's/\]//g' | tr " " "\n"
|
||||
clean:
|
||||
find . -type f | xargs file | grep "ELF.*executable" | awk -F: '{print $1}' | rm
|
||||
find . -type f | xargs file | grep "ELF.*executable" | awk -F: '{print $1}' | xargs rm
|
||||
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 ports
|
||||
|
||||
.PHONY: jobs
|
||||
.PHONY: jobs patches
|
Reference in New Issue
Block a user