Permalink
Browse files

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

  • Loading branch information...
1 parent 0aac877 commit c43f41de1b228bb2b68ce488ba6a287295153044 @tarsius tarsius committed Oct 13, 2013
Showing with 14 additions and 11 deletions.
  1. +14 −11 Makefile
View
@@ -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 $<

0 comments on commit c43f41d

Please sign in to comment.