Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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
  21. .NOTPARALLEL: # always run this make serially
  22. .SUFFIXES: # we don't need default suffix rules
  23. ifeq ($(MAKELEVEL), 0)
  24. $(error This make needs to be started as a sub-make from the toplevel directory.)
  25. endif
  26. LISPO = org-install.el
  27. LISPF = $(subst $(LISPO),,$(wildcard *.el))
  28. LISPC = $(LISPF:%el=%elc)
  29. .PHONY: all compile compile-dirty \
  30. autoloads \
  31. install clean cleanauto cleanall clean-install
  32. all \
  33. compile \
  34. compile-dirty: cleanauto
  35. $(ELCDIR)
  36. autoloads: $(LISPO)
  37. org-install.el: $(LISPF)
  38. $(ORG-INSTALL)
  39. install: $(LISPF) compile autoloads
  40. if [ ! -d $(DESTDIR)$(lispdir) ] ; then \
  41. $(MKDIR) $(DESTDIR)$(lispdir) ; \
  42. fi ;
  43. $(CP) $(LISPC) $(LISPF) $(LISPO) $(DESTDIR)$(lispdir)
  44. clean:
  45. $(RM) *.elc
  46. cleanauto: # internal target
  47. $(RM) $(LISPO) $(LISPO:%el=%elc)
  48. cleanall:
  49. $(RM) *.elc $(LISPO)
  50. clean-install:
  51. if [ -d $(DESTDIR)$(lispdir) ] ; then \
  52. $(RM) $(DESTDIR)$(lispdir)/org*.el* $(DESTDIR)$(lispdir)/ob*.el* ; \
  53. fi ;