2012-07-14 18:13:25 +00:00
|
|
|
|
;;; org-fixup.el --- make life easier for folks without GNU make
|
cleanup in lisp/Makefile, targets; create org-fixup.el, remove version definition
* UTILITIES/org-fixup.el: new file, has functions to create
org-version.el and org-install.el, now use by the build system.
* lisp/Makefile: delete said definitions, now sourced from toplevel
make. "clean" and "cleanall" should do the same thing here, make
them aliases, ditto for "all" and "compile". Both autoload files
must be .PHONY and depend only on each other for correct ordering.
Make "compile-dirty" actually do that again (i.e. no implied
"clean", but "cleanauto"). Remove autoload files directly after
install, so that they will only be present when explicitly requested
by "autoloads". Create "org-version.el" before compilation as it is
mandatory. Remove $(ORG_MAKE_INSTALL) and $(ORG_MAKE_VERSION),
source from default.mk/local.mk.
* default.mk: move definitions for $(ORG_MAKE_INSTALL) and
$(ORG_MAKE_VERSION) here so that they can be more easily configured.
Remove definition of "org-release" from $(BATCH) and $(BTEST), now
sourced from "org-version.el".
* targets.mk: target reorganization, introduce "stop" targets to
prevent cleaning of org-version.el. Use new targets for "oldorg" to
make it more robust in case of errors. New target "cleanutils" to
remove any "*.elc" files that may have been produced there and add
this target to "cleanall". Do the same in cleancontrib.
2012-04-28 17:24:39 +00:00
|
|
|
|
;;
|
|
|
|
|
;; Author: Achim Gratz
|
2012-07-14 18:13:25 +00:00
|
|
|
|
;; Keywords: orgmode
|
2021-09-26 07:44:29 +00:00
|
|
|
|
;; URL: https://orgmode.org
|
cleanup in lisp/Makefile, targets; create org-fixup.el, remove version definition
* UTILITIES/org-fixup.el: new file, has functions to create
org-version.el and org-install.el, now use by the build system.
* lisp/Makefile: delete said definitions, now sourced from toplevel
make. "clean" and "cleanall" should do the same thing here, make
them aliases, ditto for "all" and "compile". Both autoload files
must be .PHONY and depend only on each other for correct ordering.
Make "compile-dirty" actually do that again (i.e. no implied
"clean", but "cleanauto"). Remove autoload files directly after
install, so that they will only be present when explicitly requested
by "autoloads". Create "org-version.el" before compilation as it is
mandatory. Remove $(ORG_MAKE_INSTALL) and $(ORG_MAKE_VERSION),
source from default.mk/local.mk.
* default.mk: move definitions for $(ORG_MAKE_INSTALL) and
$(ORG_MAKE_VERSION) here so that they can be more easily configured.
Remove definition of "org-release" from $(BATCH) and $(BTEST), now
sourced from "org-version.el".
* targets.mk: target reorganization, introduce "stop" targets to
prevent cleaning of org-version.el. Use new targets for "oldorg" to
make it more robust in case of errors. New target "cleanutils" to
remove any "*.elc" files that may have been produced there and add
this target to "cleanall". Do the same in cleancontrib.
2012-04-28 17:24:39 +00:00
|
|
|
|
;;
|
2012-05-26 20:32:21 +00:00
|
|
|
|
;; This file is not part of GNU Emacs.
|
cleanup in lisp/Makefile, targets; create org-fixup.el, remove version definition
* UTILITIES/org-fixup.el: new file, has functions to create
org-version.el and org-install.el, now use by the build system.
* lisp/Makefile: delete said definitions, now sourced from toplevel
make. "clean" and "cleanall" should do the same thing here, make
them aliases, ditto for "all" and "compile". Both autoload files
must be .PHONY and depend only on each other for correct ordering.
Make "compile-dirty" actually do that again (i.e. no implied
"clean", but "cleanauto"). Remove autoload files directly after
install, so that they will only be present when explicitly requested
by "autoloads". Create "org-version.el" before compilation as it is
mandatory. Remove $(ORG_MAKE_INSTALL) and $(ORG_MAKE_VERSION),
source from default.mk/local.mk.
* default.mk: move definitions for $(ORG_MAKE_INSTALL) and
$(ORG_MAKE_VERSION) here so that they can be more easily configured.
Remove definition of "org-release" from $(BATCH) and $(BTEST), now
sourced from "org-version.el".
* targets.mk: target reorganization, introduce "stop" targets to
prevent cleaning of org-version.el. Use new targets for "oldorg" to
make it more robust in case of errors. New target "cleanutils" to
remove any "*.elc" files that may have been produced there and add
this target to "cleanall". Do the same in cleancontrib.
2012-04-28 17:24:39 +00:00
|
|
|
|
;;
|
|
|
|
|
;; GNU Emacs is free software; you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation; either version 3, or (at your option)
|
|
|
|
|
;; any later version.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
|
|
|
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
|
;; Boston, MA 02110-1301, USA.
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;;
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
2012-07-14 18:13:25 +00:00
|
|
|
|
(require 'org-compat "org-compat.el")
|
cleanup in lisp/Makefile, targets; create org-fixup.el, remove version definition
* UTILITIES/org-fixup.el: new file, has functions to create
org-version.el and org-install.el, now use by the build system.
* lisp/Makefile: delete said definitions, now sourced from toplevel
make. "clean" and "cleanall" should do the same thing here, make
them aliases, ditto for "all" and "compile". Both autoload files
must be .PHONY and depend only on each other for correct ordering.
Make "compile-dirty" actually do that again (i.e. no implied
"clean", but "cleanauto"). Remove autoload files directly after
install, so that they will only be present when explicitly requested
by "autoloads". Create "org-version.el" before compilation as it is
mandatory. Remove $(ORG_MAKE_INSTALL) and $(ORG_MAKE_VERSION),
source from default.mk/local.mk.
* default.mk: move definitions for $(ORG_MAKE_INSTALL) and
$(ORG_MAKE_VERSION) here so that they can be more easily configured.
Remove definition of "org-release" from $(BATCH) and $(BTEST), now
sourced from "org-version.el".
* targets.mk: target reorganization, introduce "stop" targets to
prevent cleaning of org-version.el. Use new targets for "oldorg" to
make it more robust in case of errors. New target "cleanutils" to
remove any "*.elc" files that may have been produced there and add
this target to "cleanall". Do the same in cleancontrib.
2012-04-28 17:24:39 +00:00
|
|
|
|
|
2021-12-20 21:27:50 +00:00
|
|
|
|
(defun org-make-manual ()
|
|
|
|
|
"Generate the Texinfo file out of the Org manual."
|
|
|
|
|
(require 'ox-texinfo)
|
|
|
|
|
(find-file "../doc/org-manual.org")
|
2024-06-14 09:40:20 +00:00
|
|
|
|
(let ((org-confirm-babel-evaluate nil)
|
|
|
|
|
;; We do not want to search local user files when building manuals.
|
|
|
|
|
(org-id-track-globally nil))
|
2023-07-31 08:23:33 +00:00
|
|
|
|
(org-texinfo-export-to-texinfo)))
|
2021-12-20 21:27:50 +00:00
|
|
|
|
|
|
|
|
|
(defun org-make-guide ()
|
|
|
|
|
"Generate the Texinfo file out of the Org guide."
|
|
|
|
|
(require 'ox-texinfo)
|
|
|
|
|
(find-file "../doc/org-guide.org")
|
2024-06-14 09:40:20 +00:00
|
|
|
|
(let ((org-confirm-babel-evaluate nil)
|
|
|
|
|
;; We do not want to search local user files when building manuals.
|
|
|
|
|
(org-id-track-globally nil))
|
2023-07-31 08:23:33 +00:00
|
|
|
|
(org-texinfo-export-to-texinfo)))
|
2021-12-20 21:27:50 +00:00
|
|
|
|
|
|
|
|
|
(make-obsolete 'org-make-manuals
|
|
|
|
|
"use org-make-manual and org-make-guide."
|
|
|
|
|
"9.6")
|
2018-05-09 00:23:10 +00:00
|
|
|
|
(defun org-make-manuals ()
|
|
|
|
|
"Generate the Texinfo files out of Org manuals."
|
|
|
|
|
(require 'ox-texinfo)
|
2019-03-19 00:57:36 +00:00
|
|
|
|
(dolist (manual '("../doc/org-manual.org" "../doc/org-guide.org"))
|
2018-05-09 00:23:10 +00:00
|
|
|
|
(find-file manual)
|
2024-06-14 09:40:20 +00:00
|
|
|
|
(let ((org-confirm-babel-evaluate nil)
|
|
|
|
|
;; We do not want to search local user files when building manuals.
|
|
|
|
|
(org-id-track-globally nil))
|
2023-07-31 08:23:33 +00:00
|
|
|
|
(org-texinfo-export-to-texinfo))))
|
2018-05-09 00:23:10 +00:00
|
|
|
|
|
2019-02-09 11:28:15 +00:00
|
|
|
|
(defun org-make-org-version (org-release org-git-version)
|
2012-07-14 18:13:25 +00:00
|
|
|
|
"Make the file org-version.el in the current directory.
|
|
|
|
|
This function is internally used by the build system and should
|
|
|
|
|
be used by foreign build systems or installers to produce this
|
2017-12-31 14:48:09 +00:00
|
|
|
|
file in the installation directory of Org mode. Org will not
|
2012-07-14 18:13:25 +00:00
|
|
|
|
work correctly if this file is not present (except directly from
|
|
|
|
|
the Git work tree)."
|
2012-05-19 17:54:00 +00:00
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert "\
|
2021-01-24 01:05:02 +00:00
|
|
|
|
;;; org-version.el --- autogenerated file, do not edit -*- lexical-binding: t -*-
|
2012-05-07 19:21:28 +00:00
|
|
|
|
;;
|
|
|
|
|
;;; Code:
|
|
|
|
|
;;;\#\#\#autoload
|
|
|
|
|
\(defun org-release ()
|
2016-08-23 20:13:56 +00:00
|
|
|
|
\"The release version of Org.
|
|
|
|
|
Inserted by installing Org mode or when a release is made.\"
|
2012-05-07 19:21:28 +00:00
|
|
|
|
(let ((org-release \"" org-release "\"))
|
|
|
|
|
org-release))
|
|
|
|
|
;;;\#\#\#autoload
|
|
|
|
|
\(defun org-git-version ()
|
2017-12-31 14:48:09 +00:00
|
|
|
|
\"The Git version of Org mode.
|
2016-08-23 20:13:56 +00:00
|
|
|
|
Inserted by installing Org or when a release is made.\"
|
2012-05-07 19:21:28 +00:00
|
|
|
|
(let ((org-git-version \"" org-git-version "\"))
|
2012-10-03 10:13:47 +00:00
|
|
|
|
org-git-version))
|
|
|
|
|
\f\n\(provide 'org-version\)
|
|
|
|
|
\f\n;; Local Variables:\n;; version-control: never
|
|
|
|
|
;; no-byte-compile: t
|
|
|
|
|
;; coding: utf-8\n;; End:\n;;; org-version.el ends here\n")
|
2014-09-10 08:50:05 +00:00
|
|
|
|
(let ((inhibit-read-only t))
|
|
|
|
|
(write-file "org-version.el"))))
|
cleanup in lisp/Makefile, targets; create org-fixup.el, remove version definition
* UTILITIES/org-fixup.el: new file, has functions to create
org-version.el and org-install.el, now use by the build system.
* lisp/Makefile: delete said definitions, now sourced from toplevel
make. "clean" and "cleanall" should do the same thing here, make
them aliases, ditto for "all" and "compile". Both autoload files
must be .PHONY and depend only on each other for correct ordering.
Make "compile-dirty" actually do that again (i.e. no implied
"clean", but "cleanauto"). Remove autoload files directly after
install, so that they will only be present when explicitly requested
by "autoloads". Create "org-version.el" before compilation as it is
mandatory. Remove $(ORG_MAKE_INSTALL) and $(ORG_MAKE_VERSION),
source from default.mk/local.mk.
* default.mk: move definitions for $(ORG_MAKE_INSTALL) and
$(ORG_MAKE_VERSION) here so that they can be more easily configured.
Remove definition of "org-release" from $(BATCH) and $(BTEST), now
sourced from "org-version.el".
* targets.mk: target reorganization, introduce "stop" targets to
prevent cleaning of org-version.el. Use new targets for "oldorg" to
make it more robust in case of errors. New target "cleanutils" to
remove any "*.elc" files that may have been produced there and add
this target to "cleanall". Do the same in cleancontrib.
2012-04-28 17:24:39 +00:00
|
|
|
|
|
2012-10-02 09:30:24 +00:00
|
|
|
|
(defun org-make-org-loaddefs ()
|
|
|
|
|
"Make the file org-loaddefs.el in the current directory.
|
2012-07-14 18:13:25 +00:00
|
|
|
|
This function is internally used by the build system and should
|
|
|
|
|
be used by foreign build systems or installers to produce this
|
2017-12-31 14:48:09 +00:00
|
|
|
|
file in the installation directory of Org mode. Org will not
|
2012-07-14 18:13:25 +00:00
|
|
|
|
work correctly if this file is not up-to-date."
|
2023-05-21 21:06:59 +00:00
|
|
|
|
(let ((outfile "org-loaddefs.el"))
|
|
|
|
|
(if (fboundp 'loaddefs-generate) ; FIXME: Emacs >= 29
|
|
|
|
|
(loaddefs-generate default-directory (expand-file-name outfile))
|
|
|
|
|
(require 'autoload)
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(set-visited-file-name outfile)
|
|
|
|
|
(insert ";;; org-loaddefs.el --- autogenerated file, do not edit\n;;\n;;; Code:\n")
|
|
|
|
|
(let ((files (directory-files default-directory
|
|
|
|
|
nil "^\\(org\\|ob\\|ox\\|ol\\|oc\\)\\(-.*\\)?\\.el$")))
|
|
|
|
|
(mapc (lambda (f) (generate-file-autoloads f)) files))
|
|
|
|
|
(insert "\f\n(provide 'org-loaddefs)\n")
|
|
|
|
|
(insert "\f\n;; Local Variables:\n;; version-control: never\n")
|
|
|
|
|
(insert ";; no-byte-compile: t\n;; no-update-autoloads: t\n")
|
|
|
|
|
(insert ";; coding: utf-8\n;; End:\n;;; org-loaddefs.el ends here\n")
|
|
|
|
|
(let ((inhibit-read-only t))
|
|
|
|
|
(save-buffer))))))
|
2012-05-19 17:54:00 +00:00
|
|
|
|
|
2012-07-14 18:13:25 +00:00
|
|
|
|
(defun org-make-autoloads (&optional compile force)
|
2012-10-02 09:30:24 +00:00
|
|
|
|
"Make the files org-loaddefs.el and org-version.el in the install directory.
|
2012-07-14 18:13:25 +00:00
|
|
|
|
Finds the install directory by looking for library \"org\".
|
|
|
|
|
Optionally byte-compile lisp files in the install directory or
|
|
|
|
|
force re-compilation. This function is provided for easier
|
|
|
|
|
manual install when the build system can't be used."
|
2019-02-09 11:28:15 +00:00
|
|
|
|
(let ((origin default-directory)
|
|
|
|
|
(dirlisp (org-find-library-dir "org")))
|
2012-05-19 17:54:00 +00:00
|
|
|
|
(unwind-protect
|
|
|
|
|
(progn
|
|
|
|
|
(cd dirlisp)
|
|
|
|
|
(org-fixup)
|
2019-02-09 11:28:15 +00:00
|
|
|
|
(org-make-org-version (org-release) (org-git-version))
|
2012-10-02 09:30:24 +00:00
|
|
|
|
(org-make-org-loaddefs)
|
2012-07-14 18:13:25 +00:00
|
|
|
|
(when compile (byte-recompile-directory dirlisp 0 force)))
|
2012-05-19 17:54:00 +00:00
|
|
|
|
(cd origin))))
|
|
|
|
|
|
2012-07-14 18:13:25 +00:00
|
|
|
|
(defun org-make-autoloads-compile ()
|
|
|
|
|
"Call org-make-autoloads with compile argument.
|
|
|
|
|
Convenience function for easier invocation from command line."
|
|
|
|
|
(org-make-autoloads 'compile nil))
|
|
|
|
|
|
|
|
|
|
(defun org-make-autoloads-compile-force ()
|
|
|
|
|
"Call org-make-autoloads with compile force arguments.
|
|
|
|
|
Convenience function for easier invocation from command line."
|
|
|
|
|
(org-make-autoloads 'compile 'force))
|
|
|
|
|
|
|
|
|
|
;; Internal functions
|
cleanup in lisp/Makefile, targets; create org-fixup.el, remove version definition
* UTILITIES/org-fixup.el: new file, has functions to create
org-version.el and org-install.el, now use by the build system.
* lisp/Makefile: delete said definitions, now sourced from toplevel
make. "clean" and "cleanall" should do the same thing here, make
them aliases, ditto for "all" and "compile". Both autoload files
must be .PHONY and depend only on each other for correct ordering.
Make "compile-dirty" actually do that again (i.e. no implied
"clean", but "cleanauto"). Remove autoload files directly after
install, so that they will only be present when explicitly requested
by "autoloads". Create "org-version.el" before compilation as it is
mandatory. Remove $(ORG_MAKE_INSTALL) and $(ORG_MAKE_VERSION),
source from default.mk/local.mk.
* default.mk: move definitions for $(ORG_MAKE_INSTALL) and
$(ORG_MAKE_VERSION) here so that they can be more easily configured.
Remove definition of "org-release" from $(BATCH) and $(BTEST), now
sourced from "org-version.el".
* targets.mk: target reorganization, introduce "stop" targets to
prevent cleaning of org-version.el. Use new targets for "oldorg" to
make it more robust in case of errors. New target "cleanutils" to
remove any "*.elc" files that may have been produced there and add
this target to "cleanall". Do the same in cleancontrib.
2012-04-28 17:24:39 +00:00
|
|
|
|
|
2012-05-26 20:32:21 +00:00
|
|
|
|
(defun org-make-local-mk ()
|
2012-07-14 18:13:25 +00:00
|
|
|
|
"Internal function for the build system."
|
2012-08-26 12:03:20 +00:00
|
|
|
|
(let ((default "mk/default.mk")
|
2012-05-26 20:32:21 +00:00
|
|
|
|
(local "local.mk"))
|
|
|
|
|
(unwind-protect
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert-file-contents default)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(when (search-forward "-8<-" nil t)
|
|
|
|
|
(forward-line 1)
|
|
|
|
|
(delete-region (point-min) (point)))
|
|
|
|
|
(when (search-forward "->8-" nil t)
|
|
|
|
|
(forward-line 0)
|
|
|
|
|
(delete-region (point) (point-max)))
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(insert "
|
|
|
|
|
# Remove \"oldorg:\" to switch to \"all\" as the default target.
|
|
|
|
|
# Change \"oldorg:\" to an existing target to make that target the default,
|
|
|
|
|
# or define your own target here to become the default target.
|
2012-09-28 14:40:00 +00:00
|
|
|
|
oldorg: # do what the old Makefile did by default.
|
2012-05-26 20:32:21 +00:00
|
|
|
|
|
|
|
|
|
##----------------------------------------------------------------------
|
|
|
|
|
")
|
|
|
|
|
(goto-char (point-max))
|
|
|
|
|
(insert "\
|
|
|
|
|
# See default.mk for further configuration options.
|
|
|
|
|
")
|
2014-09-10 08:50:05 +00:00
|
|
|
|
(let ((inhibit-read-only t))
|
|
|
|
|
(write-file local)))
|
2012-05-26 20:32:21 +00:00
|
|
|
|
nil)))
|
|
|
|
|
|
|
|
|
|
(defun org-make-letterformat (a4name lettername)
|
2012-07-14 18:13:25 +00:00
|
|
|
|
"Internal function for the build system."
|
2012-05-26 20:32:21 +00:00
|
|
|
|
(unwind-protect
|
|
|
|
|
(with-temp-buffer
|
|
|
|
|
(insert-file-contents a4name)
|
|
|
|
|
(goto-char (point-min))
|
|
|
|
|
(while (search-forward "\\pdflayout=(0l)" nil t)
|
|
|
|
|
(replace-match "\\pdflayout=(1l)" nil t))
|
2014-09-10 08:50:05 +00:00
|
|
|
|
(let ((inhibit-read-only t))
|
|
|
|
|
(write-file lettername)))
|
2012-05-26 20:32:21 +00:00
|
|
|
|
nil))
|
|
|
|
|
|
2012-07-14 18:13:25 +00:00
|
|
|
|
;; redefine version functions
|
|
|
|
|
|
2012-05-07 19:21:28 +00:00
|
|
|
|
(defmacro org-fixup ()
|
|
|
|
|
(let* ((origin default-directory)
|
2012-05-07 20:37:31 +00:00
|
|
|
|
(dirlisp (org-find-library-dir "org"))
|
2012-05-07 19:21:28 +00:00
|
|
|
|
(dirorg (concat dirlisp "../" ))
|
|
|
|
|
(dirgit (concat dirorg ".git/" ))
|
|
|
|
|
(org-version "N/A-fixup")
|
|
|
|
|
(org-git-version "N/A-fixup !!check installation!!"))
|
2012-07-11 17:32:33 +00:00
|
|
|
|
(if (and (boundp 'org-fake-release) (stringp org-fake-release)
|
|
|
|
|
(boundp 'org-fake-git-version) (stringp org-fake-git-version))
|
|
|
|
|
(setq org-version org-fake-release
|
|
|
|
|
org-git-version org-fake-git-version)
|
|
|
|
|
(if (load (concat dirlisp "org-version.el") 'noerror 'nomessage 'nosuffix)
|
|
|
|
|
(setq org-version (org-release)
|
|
|
|
|
org-git-version (org-git-version))
|
|
|
|
|
(when (and (file-exists-p dirgit)
|
|
|
|
|
(executable-find "git"))
|
|
|
|
|
(unwind-protect
|
|
|
|
|
(progn
|
|
|
|
|
(cd dirorg)
|
|
|
|
|
(let ((git6 (substring (shell-command-to-string "git describe --abbrev=6 HEAD") 0 -1))
|
|
|
|
|
(git0 (substring (shell-command-to-string "git describe --abbrev=0 HEAD") 0 -1))
|
|
|
|
|
(gitd (string-match "\\S-"
|
|
|
|
|
(shell-command-to-string "git status -uno --porcelain"))))
|
2012-07-14 18:13:25 +00:00
|
|
|
|
(setq org-git-version (concat git6 (when gitd ".dirty") "-git"))
|
2012-07-11 17:32:33 +00:00
|
|
|
|
(if (string-match "^release_" git0)
|
|
|
|
|
(setq org-version (substring git0 8))
|
|
|
|
|
(setq org-version git0))))
|
2012-07-14 18:13:25 +00:00
|
|
|
|
(cd origin)))))
|
2012-08-08 08:05:41 +00:00
|
|
|
|
(message "org-fixup.el: redefined Org version")
|
2012-05-07 19:21:28 +00:00
|
|
|
|
`(progn
|
|
|
|
|
(defun org-release () ,org-version)
|
2012-07-14 18:13:25 +00:00
|
|
|
|
(defun org-git-version () ,org-git-version))))
|
cleanup in lisp/Makefile, targets; create org-fixup.el, remove version definition
* UTILITIES/org-fixup.el: new file, has functions to create
org-version.el and org-install.el, now use by the build system.
* lisp/Makefile: delete said definitions, now sourced from toplevel
make. "clean" and "cleanall" should do the same thing here, make
them aliases, ditto for "all" and "compile". Both autoload files
must be .PHONY and depend only on each other for correct ordering.
Make "compile-dirty" actually do that again (i.e. no implied
"clean", but "cleanauto"). Remove autoload files directly after
install, so that they will only be present when explicitly requested
by "autoloads". Create "org-version.el" before compilation as it is
mandatory. Remove $(ORG_MAKE_INSTALL) and $(ORG_MAKE_VERSION),
source from default.mk/local.mk.
* default.mk: move definitions for $(ORG_MAKE_INSTALL) and
$(ORG_MAKE_VERSION) here so that they can be more easily configured.
Remove definition of "org-release" from $(BATCH) and $(BTEST), now
sourced from "org-version.el".
* targets.mk: target reorganization, introduce "stop" targets to
prevent cleaning of org-version.el. Use new targets for "oldorg" to
make it more robust in case of errors. New target "cleanutils" to
remove any "*.elc" files that may have been produced there and add
this target to "cleanall". Do the same in cleancontrib.
2012-04-28 17:24:39 +00:00
|
|
|
|
|
|
|
|
|
(provide 'org-fixup)
|
|
|
|
|
|
|
|
|
|
;; Local Variables:
|
|
|
|
|
;; no-byte-compile: t
|
|
|
|
|
;; coding: utf-8
|
|
|
|
|
;; End:
|
|
|
|
|
;;; org-fixup.el ends here
|