branch: elpa/htmlize
commit 5e77833c7a357e87f8533cbcaffc7ff067c7ad93
Author: Jonas Bernoulli <jo...@bernoul.li>
Commit: Jonas Bernoulli <jo...@bernoul.li>

    Add make target to update htmlize.el.html
    
    Do not use "--batch" because that effects faces.  They all become
    monochrome of we use that argument.
---
 Makefile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Makefile b/Makefile
index 3d1046ccaa..761b988f77 100644
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,7 @@ PKG = htmlize
 
 ELS   = $(PKG).el
 ELCS  = $(ELS:.el=.elc)
+HTML  = $(ELS:.el=.el.html)
 
 DEPS  =
 
@@ -19,6 +20,7 @@ help:
        $(info make all          - generate byte-code and autoloads)
        $(info make lisp         - generate byte-code and autoloads)
        $(info make redo         - re-generate byte-code and autoloads)
+       $(info make htmlize      - htmlize htmlize.el)
        $(info make clean        - remove generated files)
        @printf "\n"
 
@@ -37,6 +39,12 @@ check-declare:
        @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) \
        --eval "(check-declare-directory default-directory)"
 
+%.el.html: %.el
+       @$(EMACS) -Q $(EMACS_ARGS) $(LOAD_PATH) \
+       -l htmlize --eval "(progn (htmlize-file \"$<\") (kill-emacs))"
+
+htmlize: $(HTML)
+
 CLEAN  = $(ELCS) $(PKG)-autoloads.el
 
 clean:

Reply via email to