aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: fecbe4d52485de0e28611107f88753bcee09170b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
generators:
	make openring
	make fortune

openring:
	generators/openring/openring \
  -s "https://drewdevault.com/feed.xml" \
  -s "https://mxb.dev/feed.xml" \
  -s "https://www.taniarascia.com/rss.xml" \
  < generators/openring/template.html \
  > generators/hugo/themes/tdro/layouts/partials/generators/openring/openring.html

fortune:
	strfile generators/fortune/quotes.fortune

hugo:
	ln -sfT ../../public generators/hugo/public
	cd generators/hugo && hugo && { cd ../.. || exit 1; }

cockpit:
	sed --in-place "s|^hugo_base_dir.*|hugo_base_dir: $PWD/generators/hugo|" cockpit/addons/Hugo/config.yaml
	sed --in-place "s|^hugo_theme.*|hugo_theme: tdro|" cockpit/addons/Hugo/config.yaml

.PHONY: generators