branch: master commit 3a4cca909fdef92f934d09f7ffcc1a9051874138 Author: Ian D <du...@gnu.org> Commit: Ian D <du...@gnu.org>
Added Makefile. --- Makefile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fcac54f --- /dev/null +++ b/Makefile @@ -0,0 +1,41 @@ +# This is part of org-bat +# +# Copyright (C) 2017 Ian Dunn. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +EMACS=emacs --batch +ALLSRC=org-bat.el +SOURCE=$(ALLSRC) +TARGET=$(patsubst %.el,%.elc,$(SOURCE)) + +all: $(TARGET) + +compile: $(TARGET) + +%.elc: %.el + @$(EMACS) \ + -L "." \ + -f batch-byte-compile $< + +autoloads: org-bat-autoloads.el + +org-bat-autoloads.el: + @$(EMACS) \ + --eval "(require 'package)" \ + --eval "(setq inhibit-message t)" \ + --eval "(package-generate-autoloads \"org-bat\" \"$$(pwd)\")" + +clean: + -rm -f *.elc