use batch-byte-recompile-directory instead of batch-byte-compile
[org-mode/org-mode-NeilSmithlineMods.git] / lisp / Makefile
blobac3445f8a53060c0a2bbf40d2549eadffaf124a9
1 .SUFFIXES: # we don't need default suffix rules
2 ifeq ($(MAKELEVEL), 0)
3 $(error This make needs to be started as a sub-make from the toplevel directory.)
4 endif
6 LISPO = org-install.el
7 LISPF = $(subst $(LISPO),,$(wildcard *.el))
8 LISPC = $(LISPF:%el=%elc)
10 .PHONY: all compile compile-dirty autoloads install clean cleanall clean-install
12 all \
13 compile \
14 compile-dirty:
15 $(BATCH) --eval '(batch-byte-recompile-directory 0)'
17 autoloads: $(LISPO)
19 org-install.el: $(LISPF)
20 $(BATCH) \
21 --eval "(require 'autoload)" \
22 --eval '(find-file "$(LISPO)")' \
23 --eval '(erase-buffer)' \
24 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPF))))' \
25 --eval '(insert "\n(provide (quote org-install))\n")' \
26 --eval '(insert "\n(defconst org-release \"$(ORGVERSION)\"\n \"The release version of org-mode. Inserted by installing org-mode\n or when a release is made.\")\n")' \
27 --eval '(insert "\n(defconst org-git-version \"$(GITVERSION)\"\n \"The Git version of org-mode. Inserted by installing org-mode\n or when a release is made.\")\n")' \
28 --eval '(save-buffer)'
30 install: $(LISPF) compile autoloads
31 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
32 $(CP) $(LISPC) $(LISPF) $(LISPO) $(lispdir)
34 clean:
35 $(RM) *.elc
37 cleanall:
38 $(RM) *.elc $(LISPO)
40 clean-install:
41 if [ ! -d $(lispdir) ]; then $(MKDIR) $(lispdir); else true; fi ;
42 $(RM) $(lispdir)/org*.el* $(lispdir)/ob*.el*