Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Omit comments preceded by a dash #21

Merged
merged 1 commit into from
Jun 6, 2017
Merged

Omit comments preceded by a dash #21

merged 1 commit into from
Jun 6, 2017

Conversation

kashav
Copy link
Contributor

@kashav kashav commented Jun 3, 2017

For #15.

Doesn't buffer any comment that is preceded by a dash (-). To omit a target with multiple comments, every comment requires a -. Any target with all comments omitted is not displayed in the help dialogue. View examples below.

# Start the dev server.
#
# Note that the API server must
# also be running.
start:
	@gopherjs -m -v serve --http :3000 github.com/tj/docs/client
.PHONY: start

# Start the API server.
api:
	@go run server/cmd/api/api.go
.PHONY: api

#- Display dependency graph.
deps:
	@godepgraph github.com/tj/docs/client | dot -Tsvg | browser
.PHONY: deps

# Display size of dependencies.
#- Any comment preceded by a dash is omitted.
size:
	@gopherjs build client/*.go -m -o /tmp/out.js
	@du -h /tmp/out.js
	@gopher-count /tmp/out.js | sort -nr
.PHONY: size
$ mmake help

  api     Start the API server.
  size    Display size of dependencies.
  start   Start the dev server.
$ mmake help -v start

  start:
    Start the dev server.

    Note that the API server must
    also be running.

$ mmake help -v size

  size:
    Display size of dependencies.

$ mmake help -v deps

@tj tj merged commit 93e1c12 into tj:master Jun 6, 2017
@tj
Copy link
Owner

tj commented Jun 6, 2017

thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants