summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1fa687a --- /dev/null +++ b/Makefile
@@ -0,0 +1,25 @@
1URL = https://acdw.casa/fwends
2REPO = https://tildegit.org/casa/pages/raw/branch/main/opml/mug.of.opml
3OUTD = /var/www/acdw.casa/fwends/
4RC = sfeedrc
5FEEDS = feeds
6FILES = index.html style.css
7AGGREGATOR = ./fwendplanet.sh
8MAXAGE = 60
9
10.PHONY: publish
11publish: build
12 mkdir -p $(OUTD)
13 cp $(FILES) $(OUTD)
14
15.PHONY: build
16build: $(RC)
17 sfeed_update $(RC) || true
18 $(AGGREGATOR) $(FEEDS) $(MAXAGE) >index.html
19
20$(RC):
21 curl -L $(REPO) | sfeed_opml_import > $@
22 echo sfeedpath=$(FEEDS) >> $@
23
24
25