pandoc-pages/Makefile

20 lines
296 B
Makefile
Raw Normal View History

2023-06-04 18:24:07 +03:00
DISTDIR ?= $(shell pwd)
TEMPLATE_DIR ?= $(DISTDIR)/templates
SCRIPT_DIR ?= $(DISTDIR)/scripts
BUILDDIR ?= $(DISTDIR)/build
2023-05-20 17:38:37 +03:00
export
PAGES := $(wildcard pages/*)
2023-06-04 18:24:07 +03:00
all: $(PAGES) static
2023-05-20 17:38:37 +03:00
$(PAGES):
$(MAKE) -C $@
2023-06-04 18:24:07 +03:00
static:
@mkdir -p $(BUILDDIR)
cp -r static $(BUILDDIR)
.PHONY: all $(PAGES) static