summaryrefslogtreecommitdiffhomepage
path: root/www/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/Makefile')
-rw-r--r--www/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/www/Makefile b/www/Makefile
index 699abb2..d54081b 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -4,10 +4,15 @@ ROOT_DIR := $(dir $(realpath $(lastword $(MAKEFILE_LIST))))
4# build html files for public/ 4# build html files for public/
5build: 5build:
6 cd $(ROOT_DIR) 6 cd $(ROOT_DIR)
7 @input_dir=~/log/public \ 7 export input_dir=~/log/public
8 output_dir=/srv/http \ 8 export output_dir=/srv/http
9 scripts/build.sh 9 @scripts/build.sh
10 10
11# Migrage frontmatter from '---' to HTML comment '<!-- -->' 11# Migrage frontmatter from '---' to HTML comment '<!-- -->'
12frontmatter: 12frontmatter:
13 find content -type f -name '*.md' | xargs sed -i ':frontmatter { 1s/^---/<!--/; 1!s/^---/-->/; 1!b}; /^---/ {1b frontmatter}' 13 find content -type f -name '*.md' | xargs sed -i ':frontmatter { 1s/^---/<!--/; 1!s/^---/-->/; 1!b}; /^---/ {1b frontmatter}'
14
15rss:
16 cd /srv/rss
17 export LIST=~/log/public/links/rss.list
18 $(ROOT_DIR)/scripts/update-feeds.sh