From 7f65ca3467db4bc9ae6ac4cb28f5865d6d4581e2 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 18 Aug 2022 23:05:52 -0500 Subject: Initialize --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1fa687a --- /dev/null +++ b/Makefile @@ -0,0 +1,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) >> $@ + + + -- cgit 1.4.1-21-gabe81