diff --git a/Makefile b/Makefile index 74e341d..b8ac0f6 100644 --- a/Makefile +++ b/Makefile @@ -112,4 +112,4 @@ PRINT_VARS := VERSION -include .task.mk .task.mk: $(TEMPLATES) generate.py - ./generate.py $(VERSION) > .task.mk + @./generate.py $(VERSION) > .task.mk || (echo "generator failed!!" && rm .task.mk) diff --git a/README.md b/README.md index 9bc2361..045226d 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,8 @@ Current Features: Depends on `GNU Make`, obviously and `Python >=3.7`. Wait python?!?!, I'm not `pip` installing some package just to parse my makefile. -I agree, so I've hacked together a file containing the bits of python we need with some tricks to run it. +I agree, all you need is one file [`.task.mk`](./task.mk). +You can automagically include it with just two additional lines to your `Makefile` (and probably one to your `.gitignore`) and your good to go. ## Setup diff --git a/assets/help.svg b/assets/help.svg index f3d99e7..83bf028 100644 --- a/assets/help.svg +++ b/assets/help.svg @@ -16,14 +16,14 @@ font-weight: 700; } - .terminal-1009981367-matrix { + .terminal-1030366103-matrix { font-family: Fira Code, monospace; font-size: 20px; line-height: 24.4px; font-variant-east-asian: full-width; } - .terminal-1009981367-title { + .terminal-1030366103-title { font-size: 18px; font-weight: bold; font-family: arial; @@ -33,127 +33,129 @@ -webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7)); filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7)); } - .terminal-1009981367-r1 { fill: #94e2d5;font-weight: bold } -.terminal-1009981367-r2 { fill: #c6d0f5 } -.terminal-1009981367-r3 { fill: #f5c2e7;font-weight: bold } -.terminal-1009981367-r4 { fill: #c6d0f5;font-style: italic;;text-decoration: underline; } -.terminal-1009981367-r5 { fill: #8288a5 } -.terminal-1009981367-r6 { fill: #f9e2af;font-weight: bold } + .terminal-1030366103-r1 { fill: #94e2d5;font-weight: bold } +.terminal-1030366103-r2 { fill: #c6d0f5 } +.terminal-1030366103-r3 { fill: #f5c2e7;font-weight: bold } +.terminal-1030366103-r4 { fill: #c6d0f5;font-style: italic;;text-decoration: underline; } +.terminal-1030366103-r5 { fill: #a6e3a1;font-weight: bold } +.terminal-1030366103-r6 { fill: #f9e2af;font-weight: bold } +.terminal-1030366103-r7 { fill: #8288a5 } +.terminal-1030366103-r8 { fill: #f38ba8;font-weight: bold } - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - make help + make help - + - - usage: -make <recipe> - -  Turn your `Makefile` into -  the task runner you always needed. -  See the example output below. - -          task.mk development           -  ────────────────────────────────────────── -  bootstrap | generate local dev environment -    l, lint | lint the python -     assets | generate assets -    release | release new version of task.mk -   c, clean | remove the generated files -  ────────────────────────────────────────── - -      examples of task.mk features      -  ────────────────────────────────────────── -     list-% | use pathlib.Path to list files -name the directory in rule (make list-src) -       info | demonstrate usage of tprint -  ────────────────────────────────────────── -    h, help | show this help - -for more info: github.com/daylinmorgan/task.mk + + usage: +make <recipe> + +  Turn your `Makefile` into +  the task runner you always needed. +  See the example output below. + +          task.mk development           +  ────────────────────────────────────────── +  bootstrap │ generate local dev environment +    l, lint │ lint the python +     assets │ generate assets +    release │ release new version of task.mk +   c, clean │ remove the generated files +  ────────────────────────────────────────── + +      examples of task.mk features      +  ────────────────────────────────────────── +     list-% │ use pathlib.Path to list files +name the directory in rule (make list-src) +       info │ demonstrate usage of tprint +  ────────────────────────────────────────── +    h, help │ show this help + +for more info: github.com/daylinmorgan/task.mk