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