Updatessss

This commit is contained in:
Case Duckworth 2021-02-22 16:36:48 -06:00
parent 7cf9a5c026
commit 517ab4c685
3 changed files with 18 additions and 4 deletions

2
G
View File

@ -7,6 +7,8 @@
PHI="<span class=phi>&#x2C77;</span>"
# functions
P()(echo "$@")
T()(sed q "$1")
Nav() { # Nav <INDEX> <files...>

2
L
View File

@ -21,7 +21,7 @@
<div class=mainwidth>
<span class=phi>&copy; 2017&ndash;$(date +%Y) Case Duckworth</span>
$(Nav - I/.??*)
<a href="${ROOT}/.atom.xml">feed</a>
<a href="${ROOT}/atom.xml">feed</a>
</div>
</footer>
</body>

View File

@ -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