.ONESHELL: ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST)))) # build html files for public/ build: cd $(ROOT_DIR) export input_dir=~/log/public export output_dir=/srv/http @scripts/build.sh # Migrage frontmatter from '---' to HTML comment '' frontmatter: find content -type f -name '*.md' | xargs sed -i ':frontmatter { 1s/^---//; 1!b}; /^---/ {1b frontmatter}' rss: cd /srv/rss export LIST=~/log/public/links/rss.list $(ROOT_DIR)/scripts/update-feeds.sh