Skip to content

Commit

Permalink
Add Makefile target to create build folder and specify output path
Browse files Browse the repository at this point in the history
This change adds a new Makefile target called "create_build_folder" which creates a build folder. The output path for the build is set to "./bin/". This ensures that the build process has a designated folder for output binaries.
  • Loading branch information
jvanrhyn committed Oct 8, 2023
1 parent 8a6b4d6 commit 456294d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@

BIN=go
OUTPATH=./bin/

build:
${BIN} build -v ./...
build: create_build_folder
${BIN} build -v -o ${OUTPATH}

create_build_folder:
@mkdir -p bin

test:
go test -race -v ./...
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 456294d

Please sign in to comment.