mirror of
https://github.com/longsleep/realtimetraffic.git
synced 2024-12-22 05:22:17 +01:00
Add godeps support via dependencies.tsv
This commit is contained in:
parent
adc1e2af5f
commit
83f37f2ce7
2 changed files with 10 additions and 6 deletions
14
Makefile
14
Makefile
|
@ -20,9 +20,11 @@ dist_gopath: $(DIST_SRC)
|
||||||
if [ ! -d "$(SYSTEM_GOPATH)" ]; then find $(CURDIR)/vendor/src -mindepth 1 -maxdepth 1 -type d \
|
if [ ! -d "$(SYSTEM_GOPATH)" ]; then find $(CURDIR)/vendor/src -mindepth 1 -maxdepth 1 -type d \
|
||||||
-exec ln -sf {} $(DIST_SRC) \; ; fi
|
-exec ln -sf {} $(DIST_SRC) \; ; fi
|
||||||
|
|
||||||
goget:
|
godeps:
|
||||||
# if [ -z "$(DEB_BUILDING)" ]; then GOPATH=$(GOPATH) go get github.com/rogpeppe/godeps; fi
|
if [ -z "$(DEB_BUILDING)" ]; then GOPATH=$(GOPATH) go get github.com/rogpeppe/godeps; fi
|
||||||
# if [ -z "$(DEB_BUILDING)" ]; then GOPATH=$(GOPATH) $(CURDIR)/vendor/bin/godeps -u dependencies.tsv; fi
|
|
||||||
|
goget: godeps
|
||||||
|
if [ -z "$(DEB_BUILDING)" ]; then GOPATH=$(GOPATH) $(CURDIR)/vendor/bin/godeps -u dependencies.tsv; fi
|
||||||
mkdir -p $(shell dirname "$(CURDIR)/vendor/src/$(GOPKG)")
|
mkdir -p $(shell dirname "$(CURDIR)/vendor/src/$(GOPKG)")
|
||||||
rm -f $(CURDIR)/vendor/src/$(GOPKG)
|
rm -f $(CURDIR)/vendor/src/$(GOPKG)
|
||||||
ln -sf $(PWD) $(CURDIR)/vendor/src/$(GOPKG)
|
ln -sf $(PWD) $(CURDIR)/vendor/src/$(GOPKG)
|
||||||
|
@ -42,11 +44,11 @@ build: goget binary
|
||||||
format:
|
format:
|
||||||
find $(FOLDERS) \( -name "*.go" ! -name "bindata.go" \) -print0 | xargs -0 -n 1 go fmt
|
find $(FOLDERS) \( -name "*.go" ! -name "bindata.go" \) -print0 | xargs -0 -n 1 go fmt
|
||||||
|
|
||||||
dependencies.tsv:
|
dependencies.tsv: godeps
|
||||||
set -e ;\
|
set -e ;\
|
||||||
TMP=$$(mktemp -d) ;\
|
TMP=$$(mktemp -d) ;\
|
||||||
cp -r $(CURDIR)/vendor $$TMP ;\
|
cp -r $(CURDIR)/vendor $$TMP ;\
|
||||||
GOPATH=$$TMP/vendor:$(CURDIR) $(CURDIR)/vendor/bin/godeps $(GOPKG)/wlan > $(CURDIR)/dependencies.tsv ;\
|
GOPATH=$$TMP/vendor:$(CURDIR) $(CURDIR)/vendor/bin/godeps $(GOPKG)/realtimetrafficd > $(CURDIR)/dependencies.tsv ;\
|
||||||
rm -rf $$TMP ;\
|
rm -rf $$TMP ;\
|
||||||
|
|
||||||
.PHONY: all dist_gopath goget generate generate-dev binary dependencies.tsv
|
.PHONY: all dist_gopath godeps goget generate generate-dev binary dependencies.tsv
|
||||||
|
|
2
dependencies.tsv
Normal file
2
dependencies.tsv
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
github.com/elazarl/go-bindata-assetfs git 30f82fa23fd844bd5bb1e5f216db87fd77b5eb43 2017-02-27T21:27:28Z
|
||||||
|
github.com/gorilla/websocket git 119002ce0495aa7a8f388544d740e1bdc8829513 2014-02-18T05:22:10Z
|
|
Loading…
Reference in a new issue