Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 7 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
TARGET=./dist
ARCHS=amd64 386
GOOS=windows linux darwin
PACKAGENAME="github.com/ropnop/kerbrute"

Expand All @@ -24,22 +23,22 @@ LDFLAGS="-X ${PACKAGENAME}/util.GitCommit=${COMMIT} \
help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'

windows: ## Make Windows x86 and x64 Binaries
@for ARCH in ${ARCHS}; do \
windows: ## Make Windows x86, x64 and ARM Binaries
@for ARCH in amd64 386 arm; do \
echo "Building for windows $${ARCH}.." ;\
GOOS=windows GOARCH=$${ARCH} go build -a -ldflags ${LDFLAGS} -o ${TARGET}/kerbrute_windows_$${ARCH}.exe || exit 1 ;\
done; \
echo "Done."

linux: ## Make Linux x86 and x64 Binaries
@for ARCH in ${ARCHS}; do \
linux: ## Make Linux x86, x64 and ARM Binaries
@for ARCH in amd64 386 arm; do \
echo "Building for linux $${ARCH}..." ; \
GOOS=linux GOARCH=$${ARCH} go build -a -ldflags ${LDFLAGS} -o ${TARGET}/kerbrute_linux_$${ARCH} || exit 1 ;\
done; \
echo "Done."

mac: ## Make Darwin (Mac) x86 and x64 Binaries
@for ARCH in ${ARCHS}; do \
mac: ## Make Darwin (Mac) x64 and ARM64 Binaries
@for ARCH in amd64 arm64; do \
echo "Building for mac $${ARCH}..." ; \
GOOS=darwin GOARCH=$${ARCH} go build -a -ldflags ${LDFLAGS} -o ${TARGET}/kerbrute_darwin_$${ARCH} || exit 1 ;\
done; \
Expand All @@ -50,7 +49,5 @@ clean: ## Delete any binaries
go clean -i -n github.com/ropnop/kerbrute ; \
echo "Done."

all: ## Make Windows, Linux and Mac x86/x64 Binaries
all: ## Make Windows (x86 x64 ARM), Linux (x86 x64 ARM) and Mac (x64 ARM64) Binaries
all: clean windows linux mac