org.el: Fix bug in `org-fill-paragraph'.
[org-mode.git] / lisp / Makefile
blobed02a95947d16210520271b8894cde437eb4f017
1 ORG-INSTALL = $(BATCH) \
2 --eval '(require '"'"'autoload)' \
3 --eval '(find-file "org-install.el")' \
4 --eval '(erase-buffer)' \
5 --eval '(insert ";;; org-install.el --- autogenerated file, do not edit\n;;\n;;; Code:\n")' \
6 --eval '(mapc (lambda (x) (generate-file-autoloads (symbol-name x)))\
7 (quote ($(LISPF) org-version.el)))' \
8 --eval '(insert "\f\n(provide '"'"'org-install)\n")' \
9 --eval '(insert ";; Local Variables:\n;; version-control: never\n")' \
10 --eval '(insert ";; no-byte-compile: t\n;; no-update-autoloads: t\n")' \
11 --eval '(insert ";; coding: utf-8\n;; End:\n;;; org-install.el ends here\n")' \
12 --eval '(save-buffer)'
13 ORG-VERSION = $(BATCH) \
14 --eval '(find-file "org-version.el")' \
15 --eval '(erase-buffer)' \
16 --eval '(insert ";;; org-version.el --- autogenerated file, do not edit\n;;\n;;; Code:\n")' \
17 --eval '(insert ";;;\#\#\#autoload\n")' \
18 --eval '(insert "(defconst org-release \"$(ORGVERSION)\"\n")' \
19 --eval '(insert " \"The release version of org-mode.\n")' \
20 --eval '(insert " Inserted by installing org-mode or when a release is made.\")\n")' \
21 --eval '(insert ";;;\#\#\#autoload\n")' \
22 --eval '(insert "(defconst org-git-version \"$(GITVERSION)\"\n")' \
23 --eval '(insert " \"The Git version of org-mode.\n")' \
24 --eval '(insert " Inserted by installing org-mode or when a release is made.\")\n")' \
25 --eval '(insert ";;;\#\#\#autoload\n")' \
26 --eval '(insert "(defconst org-odt-data-dir \"$(datadir)\"\n")' \
27 --eval '(insert " \"The location of ODT styles.\")\n")' \
28 --eval '(insert ";; Local Variables:\n;; version-control: never\n")' \
29 --eval '(insert ";; no-byte-compile: t\n")' \
30 --eval '(insert ";; coding: utf-8\n;; End:\n;;; org-version.el ends here\n")' \
31 --eval '(save-buffer)'
32 -include local.mk # optional local customization
34 .NOTPARALLEL: # always run this make serially
35 .SUFFIXES: # we don't need default suffix rules
36 ifeq ($(MAKELEVEL), 0)
37 $(error This make needs to be started as a sub-make from the toplevel directory.)
38 endif
40 LISPO = org-install.el org-version.el # autogenerated files
41 LISPF = $(filter-out $(LISPO),$(wildcard *.el))
42 LISPC = $(LISPF:%el=%elc)
44 .PHONY: all compile compile-dirty \
45 autoloads \
46 install clean cleanauto cleanall clean-install \
47 org-version.el
49 all \
50 compile \
51 compile-dirty: cleanauto org-version.el
52 $(ELCDIR)
54 autoloads: $(LISPO)
56 org-version.el: $(LISPF)
57 @echo "org-version: $(ORGVERSION) ($(GITVERSION))"
58 @$(ORG-VERSION)
60 org-install.el: org-version.el
61 $(ORG-INSTALL)
63 install: $(LISPF) compile autoloads
64 if [ ! -d $(DESTDIR)$(lispdir) ] ; then \
65 $(MKDIR) $(DESTDIR)$(lispdir) ; \
66 fi ;
67 $(CP) $(LISPC) $(LISPF) $(LISPO) $(DESTDIR)$(lispdir)
69 clean:
70 $(RM) *.elc
72 cleanauto: # internal target
73 $(RM) $(LISPO) $(LISPO:%el=%elc)
75 cleanall:
76 $(RM) *.elc $(LISPO)
78 clean-install:
79 if [ -d $(DESTDIR)$(lispdir) ] ; then \
80 $(RM) $(DESTDIR)$(lispdir)/org*.el* $(DESTDIR)$(lispdir)/ob*.el* ; \
81 fi ;