diff options
author | Case Duckworth | 2022-08-18 23:05:52 -0500 |
---|---|---|
committer | Case Duckworth | 2022-08-18 23:07:16 -0500 |
commit | 7f65ca3467db4bc9ae6ac4cb28f5865d6d4581e2 (patch) | |
tree | 5536b0a33d1f0bc00151d4eb4d9e78d8e9086ffa /Makefile | |
download | fwendplanet-7f65ca3467db4bc9ae6ac4cb28f5865d6d4581e2.tar.gz fwendplanet-7f65ca3467db4bc9ae6ac4cb28f5865d6d4581e2.zip |
Initialize
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 | |||