My ham website
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.

19 lines
426 B

  1. SHELL := /bin/bash
  2. FILE := tmp.txt
  3. CAT := bat
  4. # ifeq (, $(shell which bat))
  5. # $(error "No bat in $(PATH), consider installing it")
  6. # CAT = cat
  7. # endif
  8. .PHONY : compile run
  9. compile :
  10. @ls -1 posts/ | sed -e "s/\..*$$//" | uniq | grep -v 'example'; \
  11. read -p "Which post? " post; \
  12. ./node_modules/showdown/bin/showdown.js makehtml -i posts/$$post.md -o posts/$$post.html
  13. run :
  14. @echo "-> Running"
  15. @npm run startdev