blob: bb05be9fa0fe51f226f3f8c79b63a8845be81c30 (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 | all: development
production: clean
	JEKYLL_ENV=production bundle exec jekyll build
development: clean
	JEKYLL_ENV=development bundle exec jekyll build
.PHONY: clean
clean:
	bundle exec jekyll clean
	rm -f ipfs.tar
make_push_to_server: production
	rsync -av _site/ w019f723.kasserver.com:/www/htdocs/w019f723/blog.uvokchee.de/
watch: clean
	bundle exec jekyll serve -l --drafts
# brute-force making URLs relative for IPFS
ipfs: clean
	JEKYLL_ENV=ipfs bundle exec jekyll build
	cd _site && cp all.html index.html && rm google* && sed -i -e 's|="/|="|g' *.html && tar cvf ../ipfs.tar $$(grep -L redirect *.html) assets index.html
gemini: clean
	mv _layouts _layouts.bak
	mv _layouts.gemini _layouts
	sed -i.bak -e '/import/ d' assets/main.scss
	sed -i.bak -e '/seo/ d' _includes/head.html
	cp _config.yml _config.yml.bak
	awk '/pagination/ {replace=1;} /enabled/ && replace==1 {replace=0; print "  enabled: false"; next;} {print;}' _config.yml > x
	sed -i -e '/theme/ d' x
	mv x _config.yml
	JEKYLL_ENV=gemini bundle3.1 exec jekyll build
	mv _config.yml.bak _config.yml
	mv assets/main.scss.bak assets/main.scss
	mv _includes/head.html.bak _includes/head.html
	mv _layouts _layouts.gemini
	mv _layouts.bak _layouts
	rm -rf _site/category
 |