gibatronic / make-help Goto Github PK
View Code? Open in Web Editor NEWUsing make as a task runner? Then document your Makefile targets with make-help!
License: MIT License
Using make as a task runner? Then document your Makefile targets with make-help!
License: MIT License
so, detect the project root and grab the makefile
automatically.
currently make-help
will sort all tasks by default. maybe an option like --no-sort
might be useful.
When I try to use it as a locally installed dependency, I get:
./node_modules/.bin/make-help: line 45: cd: ../make-help/bin: No such file or directory
./node_modules/.bin/make-help: line 45: cd: /Users/Storm/dev/contentshq/api/../lib: No such file or directory
awk: can't open file /Users/Storm/dev/contentshq/api/commented-targets.awk
source line number 1 source file /Users/Storm/dev/contentshq/api/commented-targets.awk
context is
>>> <<<
Would love to use this, but I'd like to install it locally so that it doesn't add a hidden global dependency to the current project.
Hello,
There is no license for this project, would you consider adding one?
Thank you!
allow the user to pass a makefile
through stdin, so it's possible to call make-help
like this:
# pipe
cat path/to/Makefile | make-help
echo 'makefile contents' | make-help
# redirect
make-help < path/to/Makefile
make-help <<< 'makefile contents'
When I run:
$ make
with the following Makefile:
.DEFAULT_GOAL := help
.PHONY: build \
go \
help
.SILENT:
# generate binaries and assets
build: go
# generate ad-insert-ui binary
go:
tasks/go
# show some help
help:
tasks/help
I got the following output (sometimes it just take long without output):
Usage:
make <target>
Targets:
out of memory for RE run time stack
If I remove the comment above the build
target, then it works, but build
it's not listed:
$make
Usage:
make <target>
Targets:
go: generate ad-insert-ui binary
help: show some help
$ npm --version
3.6.0
$ node --version
v5.6.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.