Skip to content

Commit

Permalink
Updated Makefile so that it doesn't recompile stale binaries. Added g…
Browse files Browse the repository at this point in the history
…itignore entries for common items and binaries
  • Loading branch information
davidz627 committed Jan 10, 2018
1 parent 951f0e3 commit 431e5bf
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Compiled binaries and deployment files
/bin/
/deploy/

# Binaries for programs and plugins
*.exe
*.dll
Expand All @@ -12,3 +16,38 @@

# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/

# OSX leaves these everywhere on SMB shares
._*

# OSX trash
.DS_Store

# Eclipse files
.classpath
.project
.settings/**

# Files generated by JetBrains IDEs, e.g. IntelliJ IDEA
.idea/
*.iml

# Vscode files
.vscode

# This is where the result of the go build goes
/output*/
/_output*/
/_output

# Emacs save files
*~
\#*\#
.\#*

# Vim-related files
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
*.un~
Session.vim
.netrwhist
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,22 @@ IMAGE_VERSION=latest
ifdef V
TESTARGS = -v -args -alsologtostderr -v 5
else
TESTARGS =
TESTARGS =
endif


all: csi-attacher

csi-attacher:
go build -o csi-attacher cmd/csi-attacher/main.go
go install github.com/kubernetes-csi/external-attacher/cmd/csi-attacher
mkdir -p bin
cp ${GOPATH}/bin/csi-attacher bin/csi-attacher

clean:
-rm -rf csi-attacher deploy/docker/csi-attacher
-rm -rf bin deploy/docker/csi-attacher

container: csi-attacher
cp csi-attacher deploy/docker
cp bin/csi-attacher deploy/docker
docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) deploy/docker

push: container
Expand Down

0 comments on commit 431e5bf

Please sign in to comment.