Updatessss
This commit is contained in:
parent
7cf9a5c026
commit
517ab4c685
2
G
2
G
|
@ -7,6 +7,8 @@
|
|||
PHI="<span class=phi>ⱷ</span>"
|
||||
|
||||
# functions
|
||||
P()(echo "$@")
|
||||
|
||||
T()(sed q "$1")
|
||||
|
||||
Nav() { # Nav <INDEX> <files...>
|
||||
|
|
2
L
2
L
|
@ -21,7 +21,7 @@
|
|||
<div class=mainwidth>
|
||||
<span class=phi>© 2017–$(date +%Y) Case Duckworth</span>
|
||||
$(Nav - I/.??*)
|
||||
<a href="${ROOT}/.atom.xml">feed</a>
|
||||
<a href="${ROOT}/atom.xml">feed</a>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
|
|
18
Makefile
18
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
|
||||
|
|
Loading…
Reference in New Issue