summary refs log tree commit diff stats
path: root/Makefile
blob: 1fa687a2f55bce962c1169e1083131f6077f59c1 (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
URL = https://acdw.casa/fwends
REPO = https://tildegit.org/casa/pages/raw/branch/main/opml/mug.of.opml
OUTD = /var/www/acdw.casa/fwends/
RC = sfeedrc
FEEDS = feeds
FILES = index.html style.css
AGGREGATOR = ./fwendplanet.sh
MAXAGE = 60

.PHONY: publish
publish: build
	mkdir -p $(OUTD)
	cp $(FILES) $(OUTD)

.PHONY: build
build: $(RC)
	sfeed_update $(RC) || true
	$(AGGREGATOR) $(FEEDS) $(MAXAGE) >index.html

$(RC):
	curl -L $(REPO) | sfeed_opml_import > $@
	echo sfeedpath=$(FEEDS) >> $@