1
1
Fork 0
mirror of https://github.com/OJ/gobuster.git synced 2024-05-18 14:26:04 +02:00
gobuster/Makefile
2018-08-28 10:41:32 +10:00

43 lines
888 B
Makefile

TARGET=./build
OSES=darwin linux windows
ARCHS=amd64 386
current: outputdir
@go build -o ./gobuster; \
echo "Done."
outputdir:
@mkdir -p ${TARGET}
windows: outputdir
@for GOARCH in ${ARCHS}; do \
echo "Building for windows $${GOARCH} ..." ; \
GOOS=windows GARCH=$${GOARCH} go build -o ${TARGET}/gobuster-$${GOARCH}.exe ; \
done; \
echo "Done."
linux: outputdir
@for GOARCH in ${ARCHS}; do \
echo "Building for linux $${GOARCH} ..." ; \
GOOS=linux GARCH=$${GOARCH} go build -o ${TARGET}/gobuster-linux-$${GOARCH} ; \
done; \
echo "Done."
darwin: outputdir
@for GOARCH in ${ARCHS}; do \
echo "Building for darwin $${GOARCH} ..." ; \
GOOS=darwin GARCH=$${GOARCH} go build -o ${TARGET}/gobuster-darwin-$${GOARCH} ; \
done; \
echo "Done."
all: darwin linux windows
test:
@go test -v -race ./... ; \
echo "Done."
clean:
@rm -rf ${TARGET}/* ; \
echo "Done."