I'm a software developer, Pythonista.
- pnovel
- This tool makes me write novels easily
- hutago
- Blog article's tags may be managed easily.
- mdtable2csv
- Convert Markdown Table to CSV with Std In/Out
- tech-memo
- My blog (wrtten in Japanese)
Auto Documented Makefile by Python
License: MIT License
I'm a software developer, Pythonista.
make2help ${TARGET_NAME}
でそのターゲットのヘルプのみを表示する
${TSRGET_NAME}
が定義されていない場合は定義されていないとエラーメッセージを表示。
実装したいオプションは下記
-f
, --file
: Makefile へのパスを指定-a
, --all
: すべてのターゲットのヘルプを表示-t
, --target-only
: ターゲットのみを一覧で表示## Show target list
help:
@python make2help.py
## sample target
target1:
@echo "This is sample target."
## Shoe content in `foo,txt`
target2: foo.txt
@cat foo.txt
現在は出力は下記になる。
$ make
help: Show target list
target1: sample target
target2: foo.tx: Shoe content in `foo,txt`
実際に期待している出力は下記
help: Show target list
target1: sample target
target2: Shoe content in `foo,txt`
.DEFAULT_GOAL := help
## install this command
install:
python3 setup.py install
## install for development
develop:
python3 setup.py develop
## exec unit test
test: tests/test_make2help.py
python3 -m unittest tests/test_make2help.py
## Show target list
help:
@make2help
.PHONY: install develop test help
上記の Makefile
で make help
すると下記が起こる
.DEFAULT_GOAL :
install: install this command
develop: install for development
test: exec unit test
help: Show target list
.PHONY:
.PHONY
や .DEFAULT_GOAL
を外す必要がある
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.