Skip to content

Commit

Permalink
Include directories in sources wildcard, add sources dep. to fsql rule
Browse files Browse the repository at this point in the history
  • Loading branch information
kashav committed May 17, 2017
1 parent e19bd3a commit e5553ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name := fsql
sources := $(wildcard *.go)
sources := $(wildcard **/*.go)

build = GOOS=$(1) GOARCH=$(2) go build -o build/$(name)$(3)
tar = cd build && tar -cvzf $(1)_$(2).tar.gz $(name)$(3) && rm $(name)$(3)
Expand All @@ -11,7 +11,7 @@ all: fsql

build: darwin linux windows

fsql:
fsql: $(sources)
go build -o ./$(name) -v .

clean:
Expand Down

0 comments on commit e5553ba

Please sign in to comment.