aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 2533f5ba86993cb385776fa5e7821c2623299223 (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
MAKEFLAGS := --jobs=2

provision:
	cd ~/Junk \
	git clone https://git.sr.ht/~sircmpwn/openring \
	cd openring \
	go build \
	go install

dither:
	bash tools/dither-images.sh

openring:
	mkdir -p public
	openring -l 165 -n 5 -p 1 \
		-s https://drewdevault.com/feed.xml \
		-s https://danluu.com/atom.xml \
		-s https://serokell.io/blog.rss.xml \
		-s https://cronokirby.com/posts/index.xml \
		-s https://www.jeffgeerling.com/blog.xml \
		< template/openring.tmpl \
		> template/openring-build.html

dev: alternator server

alternator: openring
	mkdir -p public
	alternator --watch

build: openring
	mkdir -p public
	alternator --build
	rm template/openring-build.html

server:
	python3 -m http.server 8000 --directory public

deploy: build
	rsync -a --delete public/ root@165.22.87.180:/var/www/html/mitjafelicijan.com/
	ssh root@165.22.87.180 chown www-data:www-data /var/www/html/mitjafelicijan.com/ -Rf