diff options
author | Xinglu Chen <public@yoctocell.xyz> | 2021-03-13 11:04:25 +0100 |
---|---|---|
committer | Xinglu Chen <public@yoctocell.xyz> | 2021-03-13 11:06:29 +0100 |
commit | 7a763c4e3bbe71b0016785709e0c9a56eabbfce6 (patch) | |
tree | e01485a7b1ba12fea26661d020955f387748841a | |
parent | b777d8e69944a1455bff4261920642ab1fb4518e (diff) |
Add Makefile.
-rw-r--r-- | Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9a78ef8 --- /dev/null +++ b/Makefile @@ -0,0 +1,40 @@ +# Based on the Makefile for piem +# <https://git.kyleam.com/piem/tree/Makefile> +.POSIX: +.SUFFIXES: .el .elc .texi .info .html + +EMACS = emacs +MAKEINFO = makeinfo + +BATCH = $(EMACS) --batch -Q -L . + +EL = git-email.el git-email-gnus.el git-email-notmuch.el git-email-magit.el \ + git-email-piem.el +ELC = $(EL:.el=.elc) + +all: compile docs + +compile: $(ELC) + +clean: + rm -rf doc/git-email.info $(ELC) + rm -rf doc/html/ + +docs: doc/git-email.html doc/git-email.info + rm -rf doc/html/ + $(MAKEINFO) --html -o doc/html/ doc/git-email.texi + +git-email-gnus.elc: git-email-gnus.el git-email.elc +git-email-notmuch.elc: git-email-notmuch.el git-email.elc +git-email-magit.elc: git-email-magit.el git-email.elc +git-email-piem.elc: git-email-piem.el git-email.elc +git-email.elc: git-email.el + +.el.elc: + $(BATCH) -f batch-byte-compile $< + +.texi.info: + $(MAKEINFO) -o doc/ $< + +.texi.html: + $(MAKEINFO) --html -o doc/html/ -c TOP_NODE_UP_URL=/ --no-split $< |