LoginSignup
0
0

More than 5 years have passed since last update.

Makefileメモ

Posted at

@の意味

"@" はコマンド行をエコーしない
http://quwahara.hatenablog.com/entry/2012/02/13/201713

e.g.

.PHONY: common-style
common-style:
    @echo ">> checking code style"
    @fmtRes=$$($(GOFMT) -d $$(find . -path ./vendor -prune -o -name '*.go' -print)); \
    if [ -n "$${fmtRes}" ]; then \
        echo "gofmt checking failed!"; echo "$${fmtRes}"; echo; \
        echo "Please ensure you are using $$($(GO) version) for formatting code."; \
        exit 1; \
    fi

-の意味

"-" はその行のコマンドが失敗しても次の行に実行が移る
http://quwahara.hatenablog.com/entry/2012/02/13/201713

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0