diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
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 @@ | |||
1 | URL = https://acdw.casa/fwends | ||
2 | REPO = https://tildegit.org/casa/pages/raw/branch/main/opml/mug.of.opml | ||
3 | OUTD = /var/www/acdw.casa/fwends/ | ||
4 | RC = sfeedrc | ||
5 | FEEDS = feeds | ||
6 | FILES = index.html style.css | ||
7 | AGGREGATOR = ./fwendplanet.sh | ||
8 | MAXAGE = 60 | ||
9 | |||
10 | .PHONY: publish | ||
11 | publish: build | ||
12 | mkdir -p $(OUTD) | ||
13 | cp $(FILES) $(OUTD) | ||
14 | |||
15 | .PHONY: build | ||
16 | build: $(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 | |||