Skip to content

Commit

Permalink
Makefile: comments and simplify
Browse files Browse the repository at this point in the history
After mulling on opencontainers#148
perhaps removing the for loop is a bit more simple and safe.

Signed-off-by: Vincent Batts <[email protected]>
  • Loading branch information
vbatts committed Jun 27, 2016
1 parent ca58cdf commit fb56f01
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,12 @@ lint:
test:
go test -race ./...

## this uses https://github.com/Masterminds/glide and https://github.com/sgotti/glide-vc
update-deps:
glide update --strip-vcs --strip-vendor --update-vendored --delete
glide-vc --only-code --no-tests
# see http://sed.sourceforge.net/sed1line.txt
for f in $$(find vendor -type f); do sed -i -e :a -e '/^\n*$$/{$$d;N;ba' -e '}' $$f; done
find vendor -type f -exec sed -i -e :a -e '/^\n*$$/{$$d;N;ba' -e '}' "{}" \;

img/%.png: img/%.dot
dot -Tpng $^ > $@
Expand Down
9 changes: 7 additions & 2 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fb56f01

Please sign in to comment.