Skip to content

Commit

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

Signed-off-by: Vincent Batts <[email protected]>
  • Loading branch information
tomalopbsr0tt committed Jun 20, 2023
1 parent 00a7a66 commit 31c08a8
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 31c08a8

Please sign in to comment.