Pass asset directory as a dependency
This commit is contained in:
parent
8f5f280597
commit
bbdd0affba
6
Makefile
6
Makefile
@ -1,11 +1,11 @@
|
||||
BINDATA_IGNORE = $(shell git ls-files -io --exclude-standard static/ | sed 's/^/-ignore=/;s/[.]/[.]/g')
|
||||
BINDATA_IGNORE = $(shell git ls-files -io --exclude-standard $< | sed 's/^/-ignore=/;s/[.]/[.]/g')
|
||||
|
||||
dev: dev-assets
|
||||
godep go build
|
||||
@echo "You can now execute ./pgweb"
|
||||
|
||||
assets:
|
||||
go-bindata $(BINDATA_OPTS) $(BINDATA_IGNORE) -ignore=[.]gitignore -ignore=[.]gitkeep static/...
|
||||
assets: static/
|
||||
go-bindata $(BINDATA_OPTS) $(BINDATA_IGNORE) -ignore=[.]gitignore -ignore=[.]gitkeep $<...
|
||||
|
||||
dev-assets:
|
||||
@$(MAKE) --no-print-directory assets BINDATA_OPTS="-debug"
|
||||
|
Loading…
x
Reference in New Issue
Block a user