Browse Source

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

fix_vendoring1
Henry Case 6 years ago
parent
commit
137b47345f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Makefile

+ 2
- 2
Makefile View File

@@ -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…
Cancel
Save