Add Makefile
This commit is contained in:
parent
649d4e0ff4
commit
1dfc8485d4
|
@ -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
2
nef
|
@ -1 +1 @@
|
|||
Subproject commit 9ae2eef082ddaa41f773059cb485db4e39c63553
|
||||
Subproject commit dc4b5b5a0703b6aac2d310bcdd2957e4dc7efe0c
|
Loading…
Reference in New Issue