Created
January 6, 2012 13:37
-
-
Save yuya-takeyama/1570650 to your computer and use it in GitHub Desktop.
Makefile からタスクの一覧とその説明 (コメント) を表示する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tasks: | |
@echo Makefile for FooBar | |
@echo | |
@echo Usage: make [task] | |
@echo | |
@echo Tasks: | |
@ruby -ne 'puts " #{$$1.ljust(24)} => #{$$2}" if $$_ =~ /^([a-z\-]*):(?:.*)#\s*(.*)$$/' < Makefile | |
foo-task: # タスクの説明 | |
echo FOO TASK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment