/make-runner

Enhanced Makefile-based task runner

Primary LanguagePythonMIT LicenseMIT

banner

Installation

You can install via pip.

pip install make-runner

Usage

All you have to do is add a comment starting with ## to your Makefile. The comment should be added to the end of line of PHONY targets and the above line of constant settings.

## source filename
SRC_FILE := source.txt
## target filename
TGT_FILE := target.txt

$(TGT_FILE): $(SRC_FILE)
     cp $(SRC_FILE) $(TGT_FILE)

.PHONY: copy
copy: $(TGT_FILE) ## copy a file from SRC_FILE to TGT_FILE

Then, type mrun in the same directory as your Makefile.

screenshot