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.
)
28 LISPO
= org-install.el
29 LISPF
= $(subst $(LISPO
),,$(wildcard *.el
))
30 LISPC
= $(LISPF
:%el
=%elc
)
32 .PHONY
: all compile compile-dirty \
34 install clean cleanauto cleanall clean-install
38 compile-dirty
: cleanauto
43 org-install.el
: $(LISPF
)
46 install: $(LISPF
) compile autoloads
47 if
[ ! -d
$(DESTDIR
)$(lispdir
) ] ; then \
48 $(MKDIR
) $(DESTDIR
)$(lispdir
) ; \
50 $(CP
) $(LISPC
) $(LISPF
) $(LISPO
) $(DESTDIR
)$(lispdir
)
55 cleanauto
: # internal target
56 $(RM
) $(LISPO
) $(LISPO
:%el
=%elc
)
62 if
[ -d
$(DESTDIR
)$(lispdir
) ] ; then \
63 $(RM
) $(DESTDIR
)$(lispdir
)/org
*.el
* $(DESTDIR
)$(lispdir
)/ob
*.el
* ; \