My personal website https://leviolson.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
852 B

  1. SHELL=/bin/bash
  2. COMMAND_COLOR = \033[36m
  3. SELECT_COLOR = \033[34m
  4. DESC_COLOR = \033[32m
  5. CLEAR_COLOR = \033[0m
  6. .PHONY: help
  7. help: ## prints this message ##
  8. @echo ""; \
  9. echo "Usage: make <command>"; \
  10. echo ""; \
  11. echo "where <command> is one of the following:"; \
  12. echo ""; \
  13. grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
  14. perl -nle '/(.*?): ## (.*?) ## (.*$$)/; if ($$3 eq "") { printf ( "$(COMMAND_COLOR)%-20s$(DESC_COLOR)%s$(CLEAR_COLOR)\n\n", $$1, $$2) } else { printf ( "$(COMMAND_COLOR)%-20s$(DESC_COLOR)%s$(CLEAR_COLOR)\n%-20s%s\n\n", $$1, $$2, " ", $$3) }';
  15. .PHONY: compile
  16. compile: ## convert md files to html ## (uses "showdown.js" in node_modules)
  17. @echo ""; \
  18. echo "Select Post to Compile:"; \
  19. echo -e "$(SELECT_COLOR)"; \
  20. ./select.sh
  21. .PHONY: run
  22. run: ## npm run startdev ##
  23. @echo "-> Running"
  24. @npm run startdev