initialize Babel languages and provide possibility to load extra packages for testing
[org-mode.git] / lisp / Makefile
blob4957ce9413ba2cd7c0ea39d711eebdf92876732b
1 ORG-INSTALL = $(BATCH) \
2 --eval '(require '"'"'autoload)' \
3 --eval '(find-file "$(LISPO)")' \
4 --eval '(erase-buffer)' \
5 --eval '(insert ";;; org-install.el --- automatically extracted autoloads\n;;\n;;; Code:\n")' \
6 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x))) (quote ($(LISPF))))' \
7 --eval '(insert "\f\n(provide '"'"'org-install)\n")' \
8 --eval '(insert "(defconst org-release \"$(ORGVERSION)\"\n")' \
9 --eval '(insert " \"The release version of org-mode.\n")' \
10 --eval '(insert " Inserted by installing org-mode or when a release is made.\")\n")' \
11 --eval '(insert "(defconst org-git-version \"$(GITVERSION)\"\n")' \
12 --eval '(insert " \"The Git version of org-mode.\n")' \
13 --eval '(insert " Inserted by installing org-mode or when a release is made.\")\n")' \
14 --eval '(insert "(defconst org-odt-data-dir \"$(datadir)\"\n")' \
15 --eval '(insert " \"The location of ODT styles.\")\n")' \
16 --eval '(insert ";; Local Variables:\n;; version-control: never\n")' \
17 --eval '(insert ";; no-byte-compile: t\n;; no-update-autoloads: t\n")' \
18 --eval '(insert ";; coding: utf-8\n;; End:\n;;; org-install.el ends here\n")' \
19 --eval '(save-buffer)'
20 -include local.mk # optional local customization
22 .NOTPARALLEL: # always run this make serially
23 .SUFFIXES: # we don't need default suffix rules
24 ifeq ($(MAKELEVEL), 0)
25 $(error This make needs to be started as a sub-make from the toplevel directory.)
26 endif
28 LISPO = org-install.el
29 LISPF = $(subst $(LISPO),,$(wildcard *.el))
30 LISPC = $(LISPF:%el=%elc)
32 .PHONY: all compile compile-dirty \
33 autoloads \
34 install clean cleanauto cleanall clean-install
36 all \
37 compile \
38 compile-dirty: cleanauto
39 $(ELCDIR)
41 autoloads: $(LISPO)
43 org-install.el: $(LISPF)
44 $(ORG-INSTALL)
46 install: $(LISPF) compile autoloads
47 if [ ! -d $(DESTDIR)$(lispdir) ] ; then \
48 $(MKDIR) $(DESTDIR)$(lispdir) ; \
49 fi ;
50 $(CP) $(LISPC) $(LISPF) $(LISPO) $(DESTDIR)$(lispdir)
52 clean:
53 $(RM) *.elc
55 cleanauto: # internal target
56 $(RM) $(LISPO) $(LISPO:%el=%elc)
58 cleanall:
59 $(RM) *.elc $(LISPO)
61 clean-install:
62 if [ -d $(DESTDIR)$(lispdir) ] ; then \
63 $(RM) $(DESTDIR)$(lispdir)/org*.el* $(DESTDIR)$(lispdir)/ob*.el* ; \
64 fi ;