From 517ab4c6856122834a536d173c75cabf1246b2ff Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 22 Feb 2021 16:36:48 -0600 Subject: [PATCH] Updatessss --- G | 2 ++ L | 2 +- Makefile | 18 +++++++++++++++--- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/G b/G index 8acbb22..84c2f10 100644 --- a/G +++ b/G @@ -7,6 +7,8 @@ PHI="" # functions +P()(echo "$@") + T()(sed q "$1") Nav() { # Nav diff --git a/L b/L index 68f6150..f112e92 100644 --- a/L +++ b/L @@ -21,7 +21,7 @@
© 2017–$(date +%Y) Case Duckworth $(Nav - I/.??*) - feed + feed
diff --git a/Makefile b/Makefile index 2913ccb..6185548 100644 --- a/Makefile +++ b/Makefile @@ -2,19 +2,25 @@ BUILD:= nef/nef LHTML:= hell/hell +LATOM:= shatom/shatom +SUBMODS:= $(BUILD) $(LHTML) $(LATOM) NEF = G # Generator (shell functions and generator loop) NEF+= R # Renderer (awk script to convert to compliant HTML) NEF+= L # Layout (template script expanded by X) -INPUT = $(wildcard I/*) # regular files +INPUT = $(wildcard I/*) # regular files INPUT+= $(wildcard I/.??*) # hidden files (for the footer) -STATIC = $(wildcard S/*) # static files +STATIC = $(wildcard S/*) # static files OUTPUT =$(patsubst I/%,O/%,$(INPUT)) OUTPUT+=$(patsubst S/%,O/S/%,$(STATIC)) +ATOM = O/atom.xml +ATOMCONF = shatom.conf.sh +OUTPUT+=$(ATOM) + .PHONY: all clean all: $(OUTPUT) clean: @@ -28,6 +34,12 @@ O/S/%: S/% O/S O/%: I/% $(NEF) $(BUILD) $< +$(ATOM): $(ATOMCONF) $(LATOM) + $(LATOM) O/ > $@ + +$(ATOMCONF): + touch $@ + # submodules -$(BUILD) $(LHTML): +$(SUBMODS): git submodule update --init --recursive