mirror of
https://github.com/bettercap/bettercap
synced 2025-07-31 12:10:10 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
c704fdd086
commit
b4f8a9e18e
1 changed files with 1 additions and 33 deletions
34
Makefile
34
Makefile
|
@ -12,22 +12,6 @@ build: resources
|
||||||
@echo "@ Building ..."
|
@echo "@ Building ..."
|
||||||
@go build $(FLAGS) -o $(TARGET) .
|
@go build $(FLAGS) -o $(TARGET) .
|
||||||
|
|
||||||
linux_arm:
|
|
||||||
@echo "@ Cross compiling for linux/arm-7"
|
|
||||||
@xgo -ldflags=$(LDFLAGS) --deps=$(PCAP) --depsargs="--with-pcap=linux" --targets=linux/arm-7 .
|
|
||||||
|
|
||||||
linux_arm64:
|
|
||||||
@echo "@ Cross compiling for linux/arm64"
|
|
||||||
@xgo -ldflags=$(LDFLAGS) --deps=$(PCAP) --depsargs="--with-pcap=linux" --targets=linux/arm64 .
|
|
||||||
|
|
||||||
linux_mips:
|
|
||||||
@echo "@ Cross compiling for linux/mips"
|
|
||||||
@xgo -ldflags=$(LDFLAGS) --deps=$(PCAP) --depsargs="--with-pcap=linux" --targets=linux/mips .
|
|
||||||
|
|
||||||
linux_mips64:
|
|
||||||
@echo "@ Cross compiling for linux/mips64"
|
|
||||||
@xgo -ldflags=$(LDFLAGS) --deps=$(PCAP) --depsargs="--with-pcap=linux" --targets=linux/mips64 .
|
|
||||||
|
|
||||||
resources: oui
|
resources: oui
|
||||||
|
|
||||||
oui:
|
oui:
|
||||||
|
@ -44,25 +28,9 @@ lint:
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
@go get -u github.com/jteeuwen/go-bindata/...
|
@go get -u github.com/jteeuwen/go-bindata/...
|
||||||
@go get github.com/ykyuen/xgo
|
|
||||||
@go get ./...
|
@go get ./...
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf bettercap-ng*.*
|
@rm -rf bettercap-ng*.*
|
||||||
@rm -rf bettercap-ng*
|
@rm -rf bettercap-ng*
|
||||||
|
@rm -rf build
|
||||||
clear_arp:
|
|
||||||
@ip -s -s neigh flush all
|
|
||||||
|
|
||||||
bcast_ping:
|
|
||||||
@ping -b 255.255.255.255
|
|
||||||
|
|
||||||
release:
|
|
||||||
@./new_release.sh
|
|
||||||
|
|
||||||
deadlock_detect_build:
|
|
||||||
@go get github.com/sasha-s/go-deadlock/...
|
|
||||||
@find . -name "*.go" | xargs sed -i "s/sync.Mutex/deadlock.Mutex/"
|
|
||||||
@goimports -w .
|
|
||||||
@git status
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue