Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
TER-233: Update makefile and update provider name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Caussat authored and Jordan Caussat committed Mar 19, 2018
1 parent 89e5414 commit 4da425a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SOURCEDIR=.
SOURCES := $(shell find $(SOURCEDIR) -name '*.go')
SOURCES := $(shell find $(SOURCEDIR) -name '*.go' | grep -v vendor)

BINARY=bin/terraform-provider-ghost

Expand All @@ -11,10 +11,13 @@ BUILD_TIME=`date +%FT%T%z`
$(BINARY): $(SOURCES)
go build ${LDFLAGS} -o ${BINARY} main.go

.PHONY: install
install:
go install ./...
install: fmt
go install

fmt:
gofmt $(SOURCES)

.PHONY: clean
clean:
if [ -f ${BINARY} ] ; then rm ${BINARY} ; fi

.PHONY: install fmt clean
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package main

import (
provider "terraform-provider-ghost/provider"
provider "terraform-provider-ghost/ghost"

"github.com/hashicorp/terraform/plugin"
)

Expand Down

0 comments on commit 4da425a

Please sign in to comment.