Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Makefile: handle all libs and make more like Magit's

  • Loading branch information...
commit c43f41de1b228bb2b68ce488ba6a287295153044 1 parent 0aac877
@tarsius tarsius authored
Showing with 14 additions and 11 deletions.
  1. +14 −11 Makefile
View
25 Makefile
@@ -1,17 +1,20 @@
EMACS = emacs
-EMACSFLAGS =
-BYTECOMPILEFORM = (progn \
- (setq byte-compile-dest-file-function (lambda (fn) "$@")) \
- (byte-compile-file "$<"))
+EFLAGS =
-OBJECTS = git-commit-mode.elc gitconfig-mode.elc gitignore-mode.elc
+ELS = git-commit-mode.el
+ELS += git-rebase-mode.el
+ELS += gitattributes-mode.el
+ELS += gitconfig-mode.el
+ELS += gitignore-mode.el
+ELCS = $(ELS:.el=.elc)
-.PHONY: build
-build : $(OBJECTS)
+.PHONY: lisp
+lisp: $(ELCS)
.PHONY: clean
-clean :
- rm -f $(OBJECTS)
+clean:
+ @echo "Cleaning..."
+ @rm -f $(ELCS)
-%.elc : %.el
- $(EMACS) -Q --batch $(EMACSFLAGS) -f batch-byte-compile $<
+%.elc: %.el
+ @$(EMACS) $(EFLAGS) -Q -batch -f batch-byte-compile $<
Please sign in to comment.
Something went wrong with that request. Please try again.