Makefile 332 B

123456789101112131415
  1. EMACS = /usr/local/Cellar/emacs-plus@28/28.1/bin/emacs --no-init --script ../ox.el
  2. PG = lua ../pg.lua
  3. ORG_SRCS = $(wildcard *.org)
  4. ORGS = $(patsubst %.org,%,$(ORG_SRCS))
  5. HTML_SRCS = $(wildcard *.html)
  6. HTMLS = $(patsubst %.html,%,$(HTML_SRCS))
  7. all: $(ORGS) $(HTMLS)
  8. %.html: %.org
  9. $(EMACS) $<
  10. %: %.html
  11. $(PG) $< > ../www/$@.html