瀏覽代碼

makefile: when vendoring consider only .s and .go files

fix_vendoring1
Henry Case 6 年之前
父節點
當前提交
137b47345f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      Makefile

+ 2
- 2
Makefile 查看文件

@@ -69,9 +69,9 @@ vendor: clean
--exclude=build
# This swaps all imports with github.com to github_com, so that standard library doesn't
# try to access external libraries.
find $(VENDOR_DIR) -type f -print0 -name "*.go" | xargs -0 sed -i 's/github\.com/github_com/g'
find $(VENDOR_DIR) -type f -iname "*.go" -print0 | xargs -0 sed -i 's/github\.com/github_com/g'
# Similar as above, but specific to assembly files. When referencing variable from assembly code
find $(VENDOR_DIR) -type f -print0 -name "*.go" | xargs -0 sed -i 's/github·com/vendor∕github_com/g'
find $(VENDOR_DIR) -type f -iname "*.s" -print0 | xargs -0 sed -i 's/github·com/vendor∕github_com/g'

bench: $(addprefix bench-, $(TARGETS))
cover: $(addprefix cover-, $(TARGETS))


Loading…
取消
儲存