Add static + changes for bw compat

This commit is contained in:
2023-06-04 18:24:07 +03:00
parent 6393a9b1c2
commit 6b2c745440
8 changed files with 589 additions and 9 deletions

View File

@@ -1,15 +1,19 @@
DISTDIR := $(shell pwd)
TEMPLATE_DIR := $(DISTDIR)/templates
SCRIPT_DIR := $(DISTDIR)/scripts
BUILDDIR := $(DISTDIR)/build
DISTDIR ?= $(shell pwd)
TEMPLATE_DIR ?= $(DISTDIR)/templates
SCRIPT_DIR ?= $(DISTDIR)/scripts
BUILDDIR ?= $(DISTDIR)/build
export
PAGES := $(wildcard pages/*)
all: $(PAGES)
all: $(PAGES) static
$(PAGES):
$(MAKE) -C $@
.PHONY: all $(PAGES)
static:
@mkdir -p $(BUILDDIR)
cp -r static $(BUILDDIR)
.PHONY: all $(PAGES) static