2021-02-05 04:47:32 +00:00
|
|
|
# acdw.net
|
|
|
|
|
|
|
|
BUILD:= nef/nef
|
|
|
|
LHTML:= hell/hell
|
2021-02-22 22:36:48 +00:00
|
|
|
LATOM:= shatom/shatom
|
|
|
|
SUBMODS:= $(BUILD) $(LHTML) $(LATOM)
|
2021-02-05 04:47:32 +00:00
|
|
|
|
|
|
|
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)
|
|
|
|
|
2021-02-22 22:36:48 +00:00
|
|
|
INPUT = $(wildcard I/*) # regular files
|
2021-02-05 05:28:46 +00:00
|
|
|
INPUT+= $(wildcard I/.??*) # hidden files (for the footer)
|
2021-02-05 04:47:32 +00:00
|
|
|
|
2021-02-22 22:36:48 +00:00
|
|
|
STATIC = $(wildcard S/*) # static files
|
2021-02-05 04:47:32 +00:00
|
|
|
|
|
|
|
OUTPUT =$(patsubst I/%,O/%,$(INPUT))
|
2021-02-05 05:28:46 +00:00
|
|
|
OUTPUT+=$(patsubst S/%,O/S/%,$(STATIC))
|
2021-02-05 04:47:32 +00:00
|
|
|
|
2021-02-22 22:36:48 +00:00
|
|
|
ATOM = O/atom.xml
|
|
|
|
ATOMCONF = shatom.conf.sh
|
|
|
|
OUTPUT+=$(ATOM)
|
|
|
|
|
2021-02-05 05:28:46 +00:00
|
|
|
.PHONY: all clean
|
2021-02-05 04:47:32 +00:00
|
|
|
all: $(OUTPUT)
|
2021-02-05 05:28:46 +00:00
|
|
|
clean:
|
|
|
|
rm -rf O
|
2021-02-05 04:47:32 +00:00
|
|
|
|
2021-02-05 06:08:23 +00:00
|
|
|
O O/S:; mkdir -p $@
|
2021-02-05 05:28:46 +00:00
|
|
|
|
|
|
|
O/S/%: S/% O/S
|
|
|
|
cp $< $@
|
2021-02-05 04:47:32 +00:00
|
|
|
|
|
|
|
O/%: I/% $(NEF)
|
|
|
|
$(BUILD) $<
|
|
|
|
|
2021-02-22 22:36:48 +00:00
|
|
|
$(ATOM): $(ATOMCONF) $(LATOM)
|
|
|
|
$(LATOM) O/ > $@
|
|
|
|
|
|
|
|
$(ATOMCONF):
|
|
|
|
touch $@
|
|
|
|
|
2021-02-05 04:47:32 +00:00
|
|
|
# submodules
|
2021-02-22 22:36:48 +00:00
|
|
|
$(SUBMODS):
|
2021-02-05 04:47:32 +00:00
|
|
|
git submodule update --init --recursive
|