美文网首页
Makefile Snippet

Makefile Snippet

作者: iidx | 来源:发表于2020-02-20 05:05 被阅读0次

Help

注意事项:

  1. 不能用空格替换tab
#! /usr/bin/env make
there:    ## god bless you
    @echo 'hi there'

.PHONY: help
.DEFAULT_GOAL := help

# Ref: https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help:
    @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

相关文章

网友评论

      本文标题:Makefile Snippet

      本文链接:https://www.haomeiwen.com/subject/asdtqhtx.html