Add Makefile

This commit is contained in:
Case Duckworth 2021-02-04 22:47:32 -06:00
parent 649d4e0ff4
commit 1dfc8485d4
2 changed files with 30 additions and 1 deletions

29
Makefile Normal file
View File

@ -0,0 +1,29 @@
# acdw.net
BUILD:= nef/nef
LHTML:= hell/hell
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 = I/* # regular files
INPUT+= I/.??* # hidden files (for the footer)
STATIC = S/* # static files
OUTPUT =$(patsubst I/%,O/%,$(INPUT))
OUTPUT+=$(patsubst S/%,O/S/%,$(INPUT))
.PHONY: all
all: $(OUTPUT)
O/S/%: S/%
cp -r $< $@
O/%: I/% $(NEF)
$(BUILD) $<
# submodules
$(BUILD) $(LHTML):
git submodule update --init --recursive

2
nef

@ -1 +1 @@
Subproject commit 9ae2eef082ddaa41f773059cb485db4e39c63553
Subproject commit dc4b5b5a0703b6aac2d310bcdd2957e4dc7efe0c