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
19 changes: 12 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TARGET=./dist
ARCHS=amd64 386
GOOS=windows linux darwin
ARCHS=amd64 386
GOOS=windows linux darwin openbsd
PACKAGENAME="github.com/ropnop/kerbrute"

COMMIT=`git rev-parse --short HEAD`
Expand All @@ -19,7 +19,7 @@ LDFLAGS="-X ${PACKAGENAME}/util.GitCommit=${COMMIT} \
-X ${PACKAGENAME}/util.Version=${VERSION} \
"

.PHONY: help windows linux mac all clean
.PHONY: help windows linux mac openbsd all clean

help: ## Show this help.
@fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
Expand All @@ -38,6 +38,13 @@ linux: ## Make Linux x86 and x64 Binaries
done; \
echo "Done."

openbsd: ## Make OpenBSD x86 and x64 Binaries
@for ARCH in ${ARCHS}; do \
echo "Building for openbsd $${ARCH}..." ; \
GOOS=openbsd GOARCH=$${ARCH} go build -a -ldflags ${LDFLAGS} -o ${TARGET}/kerbrute_openbsd_$${ARCH} || exit 1 ;\
done; \
echo "Done."

mac: ## Make Darwin (Mac) x86 and x64 Binaries
@for ARCH in ${ARCHS}; do \
echo "Building for mac $${ARCH}..." ; \
Expand All @@ -50,7 +57,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: clean windows linux mac


all: ## Make Windows, Linux, OpenBSD and Mac x86/x64 Binaries
all: clean windows linux openbsd mac