Move Git-ignored file list into variable
Rename existing variable to better indicate its use.
This commit is contained in:
parent
209230dfd3
commit
fbbcd0ad58
7
Makefile
7
Makefile
@ -1,15 +1,14 @@
|
|||||||
BINDATA=
|
BINDATA_IGNORE = $(shell git ls-files -io --exclude-standard static/ | awk '{ gsub(/[.]/, "[.]"); printf "%s", " -ignore=" $$0 }')
|
||||||
|
|
||||||
dev: dev-assets
|
dev: dev-assets
|
||||||
godep go build
|
godep go build
|
||||||
@echo "You can now execute ./pgweb"
|
@echo "You can now execute ./pgweb"
|
||||||
|
|
||||||
assets:
|
assets:
|
||||||
go-bindata $(BINDATA) $(shell git ls-files -io --exclude-standard static/ | awk '{ gsub(/[.]/, "[.]"); printf "%s", " -ignore=" $$0 }') \
|
go-bindata $(BINDATA_OPTS) $(BINDATA_IGNORE) -ignore=[.]gitignore -ignore=[.]gitkeep static/...
|
||||||
-ignore=[.]gitignore -ignore=[.]gitkeep static/...
|
|
||||||
|
|
||||||
dev-assets:
|
dev-assets:
|
||||||
@$(MAKE) --no-print-directory assets BINDATA="-debug"
|
@$(MAKE) --no-print-directory assets BINDATA_OPTS="-debug"
|
||||||
|
|
||||||
build: assets
|
build: assets
|
||||||
gox -osarch="darwin/amd64 darwin/386 linux/amd64 linux/386 windows/amd64 windows/386" -output="./bin/pgweb_{{.OS}}_{{.Arch}}"
|
gox -osarch="darwin/amd64 darwin/386 linux/amd64 linux/386 windows/amd64 windows/386" -output="./bin/pgweb_{{.OS}}_{{.Arch}}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user