~ecs/ecs.d2evs.net

ref: 03a71095714af046370d741122c5136bdb99546a ecs.d2evs.net/Makefile -rw-r--r-- 723 bytes
03a71095Eyal Sawady make upload: upload to ecs.d2evs.net 3 months ago
                                                                                
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
.POSIX:

blogs=\
	https://xkcd.com/atom.xml \
	https://drewdevault.com/feed.xml \
	https://www.youtube.com/feeds/videos.xml?channel_id=UCqJ-Xo29CKyLTjn6z2XwYAw \
	https://emersion.fr/blog/rss.xml \
	https://danluu.com/atom.xml \
	https://aphyr.com/posts.atom \
	https://sourcehut.org/blog/index.xml \
	https://tonsky.me/blog/atom.xml \

local: gen
	doas cp -r _site/* /var/www/localhost

upload: gen
	rsync -r _site/ ecs@ecs.d2evs.net:/var/www/ecs.d2evs.net

gen:
	@printf "openring <_templates/webring-in.html >_templates/webring-out.html\n"
	@openring $$(for blog in $(blogs); do echo "-s $$blog"; done) \
		<_templates/webring-in.html \
		>_templates/webring-out.html
	wersh . _site

clean:
	rm -rf _site

.PHONY: clean