aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-03-29 16:48:34 +0000
committerFuwn <[email protected]>2021-03-29 16:48:34 +0000
commite021f1002dfba3964270a13bb738b08fc53c9e5b (patch)
tree9716314097d8cda9dd0292060df1f9feae9260a7
parentformat: Capitalization (diff)
downloadwhirl-e021f1002dfba3964270a13bb738b08fc53c9e5b.tar.xz
whirl-e021f1002dfba3964270a13bb738b08fc53c9e5b.zip
feature: Allow `Makefile` to accept arguments
This is just useful for development. Wondering how to use it? `make help ARGS=completions`.
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4ca4760..a93e8bb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,10 @@
FLAGS = -d -v # These are just generally useful for development.
help:
- cargo run -- $(FLAGS) help
+ cargo run -- $(FLAGS) help $(ARGS)
run:
- cargo run -- $(FLAGS) run
+ cargo run -- $(FLAGS) run $(ARGS)
config:
- cargo run -- $(FLAGS) config
+ cargo run -- $(FLAGS) config $(ARGS)