all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob bd6efeb6f5510e1a29107f974457bbd4aa3025b3 8018 bytes (raw)
name: mk/default.mk 	 # note: path name is non-authoritative(*)

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
 
##----------------------------------------------------------------------
##  NEVER EDIT THIS FILE, PUT ANY ADAPTATIONS INTO local.mk
##-8<-------------------------------------------------------------------
##  CHECK AND ADAPT THE FOLLOWING DEFINITIONS
##----------------------------------------------------------------------

# Name of your emacs binary
EMACS	= emacs
EMACS_VERSION := $(shell $(EMACS) -Q --batch --eval '(message "%s" emacs-version)' 2>&1)

# Where local software is found
prefix	= /usr/share

# Where local lisp files go.
lispdir= $(prefix)/emacs/site-lisp/org

# Where local data files go.
datadir = $(prefix)/emacs/etc/org

# Where info files go.
infodir = $(prefix)/info

# Define if you only need info documentation, the default includes html and pdf
#ORG_MAKE_DOC = info # html pdf

# Define which git branch to switch to during update.  Does not switch
# the branch when undefined.
GIT_BRANCH =

# Where to create temporary files for the testsuite
# respect TMPDIR if it is already defined in the environment
TMPDIR ?= /tmp
testdir = $(TMPDIR)/tmp-orgtest

# Where to store Org dependencies
top_builddir := $(shell pwd)
pkgdir_top := $(top_builddir)/pkg-deps
pkgdir := $(pkgdir_top)/$(EMACS_VERSION)

# Extra flags to be passed to Emacs
EFLAGS ?=

# Third-party packages to install when running make
EPACKAGES ?= compat

# Configuration for testing
# Verbose ERT summary by default for Emacs-28 and above.
# To override:
# - Add to local.mk
#   EMACS_TEST_VERBOSE =
# - Export EMACS_TEST_VERBOSE environment variable with empty value
# - Run tests as
#   EMACS_TEST_VERBOSE= make test [OTHER_ARGUMENTS...]
#   or as
#   make test EMACS_TEST_VERBOSE= [OTHER_ARGUMENTS...]
EMACS_TEST_VERBOSE ?= yes
ifeq (,$(EMACS_TEST_VERBOSE))
# Emacs-28 considers empty value as true, fixed in Emacs-29
unexport EMACS_TEST_VERBOSE
endif
# add options before standard load-path
BTEST_PRE   =
# add options after standard load path
BTEST_POST  =
              # -L <path-to>/ert      # needed for Emacs23, Emacs24 has ert built in
              # -L <path-to>/ess      # needed for running R tests
              # -L <path-to>/htmlize  # need at least version 1.34 for source code formatting
BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave perl python java
              # R                     # requires ESS to be installed and configured
              # ruby                  # requires inf-ruby to be installed and configured
# extra packages to require for testing
BTEST_EXTRA =
              # ess-site  # load ESS for R tests
# Whether to activate extra debugging facilities for make repro.
REPRO_DEBUG ?= yes
# Extra arguments passed to Emacs for make repro.
# e.g. -l config.el /tmp/bug.org
REPRO_ARGS ?=
##->8-------------------------------------------------------------------
## YOU MAY NEED TO ADAPT THESE DEFINITIONS
##----------------------------------------------------------------------

# How to run tests
req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))'
lst-ob-lang = ($(ob-lang) . t)
req-extra   = --eval '(require '"'"'$(req))'
package-define-refresh-mark = --eval '(setq org--compile-packages-missing nil)'
package-need-refresh-mark = --eval '(unless (require '"'"'$(package) nil t) (setq org--compile-packages-missing t))'
package-refresh-maybe = --eval '(if org--compile-packages-missing (package-refresh-contents) (message "No third-party packages need to be installed"))'
package-install-maybe = --eval '(unless (require '"'"'$(package) nil t) (package-install '"'"'$(package)))'
BTEST_RE   ?= \\(org\\|ob\\|ox\\)
BTEST_LOAD  = \
	--eval '(add-to-list '"'"'load-path (concat default-directory "lisp"))' \
	--eval '(add-to-list '"'"'load-path (concat default-directory "testing"))'
BTEST_INIT  = $(BTEST_PRE) $(BTEST_LOAD) $(BTEST_POST)

ifeq (,$(EPACKAGES))
INSTALL_PACKAGES =
else
INSTALL_PACKAGES = \
	$(BATCH) \
        $(package-define-refresh-mark) $(foreach package,$(EPACKAGES),$(package-need-refresh-mark)) $(package-refresh-maybe) \
        $(foreach package,$(EPACKAGES),$(package-install-maybe))
endif

BTEST = $(BATCH) $(BTEST_INIT) \
	  -l org-batch-test-init \
	  --eval '(setq \
		org-batch-test t \
		org-babel-load-languages \
		  (quote ($(foreach ob-lang,\
				$(BTEST_OB_LANGUAGES) emacs-lisp shell org,\
				$(lst-ob-lang)))) \
		org-test-select-re "$(BTEST_RE)" \
		)' \
	  -l org-loaddefs.el \
	  -l cl -l testing/org-test.el \
	  -l ert -l org -l ox -l ol \
	  $(foreach req,$(BTEST_EXTRA),$(req-extra)) \
	  --eval '(org-test-run-batch-tests org-test-select-re)'

# Running a plain emacs with no config and this Org mode loaded.  This
# should be useful for manual testing and verification of problems.
NOBATCH = $(EMACSQ) $(BTEST_INIT) -l org -f org-version

ifeq ($(REPRO_DEBUG), yes)
REPRO_INIT = --eval "(setq \
	debug-on-error t\
	debug-on-signal nil\
	debug-on-quit nil\
	org-element--cache-self-verify 'backtrace\
	org-element--cache-self-verify-frequency 1.0\
	org-element--cache-map-statistics t)"
else
REPRO_INIT =
endif

# Running a plain emacs with no config, this Org mode loaded, and
# debugging facilities activated.
REPRO = $(NOBATCH) $(REPRO_INIT) $(REPRO_ARGS)

# start Emacs with no user and site configuration
# EMACSQ = -vanilla # XEmacs
EMACSQ  = $(EMACS)  -Q

# Using emacs in batch mode.
BATCH	= $(EMACSQ) -batch \
	  $(EFLAGS) \
	  --eval '(setq vc-handled-backends nil org-startup-folded nil org-element-cache-persistent nil)' \
          --eval '(make-directory "$(pkgdir)" t)' \
	  --eval '(setq package-user-dir "$(pkgdir)")' --eval '(package-initialize)'

# Emacs must be started in toplevel directory
BATCHO	= $(BATCH) \
	  --eval '(add-to-list '"'"'load-path "./lisp")'

# How to generate local.mk
MAKE_LOCAL_MK = $(BATCHO) \
	  --eval '(load "org-compat.el")' \
	  --eval '(load "../mk/org-fixup.el")' \
	  --eval '(org-make-local-mk)'

# Emacs must be started in lisp directory
BATCHL	= $(BATCH) \
	  --eval '(add-to-list '"'"'load-path ".")'

# How to generate org-loaddefs.el
MAKE_ORG_INSTALL = $(BATCHL) \
	  --eval '(load "org-compat.el")' \
	  --eval '(load "../mk/org-fixup.el")' \
	  --eval '(org-make-org-loaddefs)'

# How to generate org-version.el
MAKE_ORG_VERSION = $(BATCHL) \
	  --eval '(load "org-compat.el")' \
	  --eval '(load "../mk/org-fixup.el")' \
	  --eval '(org-make-org-version "$(ORGVERSION)" "$(GITVERSION)")'

# How to byte-compile the whole source directory
ELCDIR	= $(BATCHL) \
	  --eval '(batch-byte-recompile-directory 0)'

# How to byte-compile a single file
ELC	= $(BATCHL) \
	  --eval '(batch-byte-compile)'

# How to make a pdf file from a texinfo file
TEXI2PDF = texi2pdf --batch --clean --expand

# How to make a pdf file from a tex file
PDFTEX = pdftex

# How to create directories with leading path components
# MKDIR	= mkdir -m 755 -p # try this if you have no install
MKDIR	= install -m 755 -d

# How to create the info files from the texinfo file
MAKEINFO = makeinfo

# How to create the HTML file
TEXI2HTML = makeinfo --html --number-sections --css-ref "https://www.gnu.org/software/emacs/manual.css"

# How to find files
FIND	= find

# How to remove files
RM	= rm -f

# How to remove files recursively
RMR	= rm -fr

# How to change file permissions
# currently only needed for git-annex due to its "lockdown" feature
CHMOD   = chmod

# How to copy the lisp files and elc files to their destination.
# CP	= cp -p	# try this if you have no install
CP	= install -m 644 -p

# How to obtain administrative privileges
# leave blank if you don't need this
# SUDO	=
SUDO	= sudo

# Name of the program to install info files
# INSTALL_INFO = ginstall-info # Debian: avoid harmless warning message
INSTALL_INFO = install-info

# target method for 'compile'
ORGCM	= dirall
# ORGCM	= dirall #   1x slowdown compared to default compilation method
# ORGCM	= single #   4x one Emacs process per compilation
# ORGCM	= source #   5x ditto, but remove compiled file immediately
# ORGCM	= slint1 #   3x possibly elicit more warnings
# ORGCM	= slint2 #   7x possibly elicit even more warnings

debug log:

solving bd6efeb6f ...
found bd6efeb6f in https://yhetil.org/emacs/87o7nsdkcw.fsf@localhost/
found 92a3942da in https://yhetil.org/emacs/87o7nsdkcw.fsf@localhost/
found 67bf96c2e in https://yhetil.org/emacs/87jzytbbg2.fsf@localhost/ ||
	https://yhetil.org/emacs/87wn2ujk27.fsf@localhost/
found b43a9b3ac in https://yhetil.org/emacs/87jzytbbg2.fsf@localhost/ ||
	https://yhetil.org/emacs/87wn2ujk27.fsf@localhost/
found 4ad1a4281 in https://yhetil.org/emacs/87jzytbbg2.fsf@localhost/ ||
	https://yhetil.org/emacs/87wn2ujk27.fsf@localhost/ ||
	https://yhetil.org/emacs/87r0t3gahd.fsf@localhost/
found 997b22b66 in https://yhetil.org/emacs/87jzytbbg2.fsf@localhost/ ||
	https://yhetil.org/emacs/87wn2ujk27.fsf@localhost/ ||
	https://yhetil.org/emacs/87r0t3gahd.fsf@localhost/
found fa46661e8 in https://git.savannah.gnu.org/cgit/emacs.git
preparing index
index prepared:
100644 fa46661e84cc42e74a75c995e12a2e10311a11d8	mk/default.mk

applying [1/6] https://yhetil.org/emacs/87jzytbbg2.fsf@localhost/
diff --git a/mk/default.mk b/mk/default.mk
index fa46661e8..997b22b66 100644

Checking patch mk/default.mk...
Applied patch mk/default.mk cleanly.

skipping https://yhetil.org/emacs/87wn2ujk27.fsf@localhost/ for 997b22b66
skipping https://yhetil.org/emacs/87r0t3gahd.fsf@localhost/ for 997b22b66
index at:
100644 997b22b6664d1336052caa8f5fc12f64d075cad0	mk/default.mk

applying [2/6] https://yhetil.org/emacs/87jzytbbg2.fsf@localhost/
diff --git a/mk/default.mk b/mk/default.mk
index 997b22b66..4ad1a4281 100644

Checking patch mk/default.mk...
Applied patch mk/default.mk cleanly.

skipping https://yhetil.org/emacs/87wn2ujk27.fsf@localhost/ for 4ad1a4281
skipping https://yhetil.org/emacs/87r0t3gahd.fsf@localhost/ for 4ad1a4281
index at:
100644 4ad1a4281964627de86add7a00f17f763fc00f75	mk/default.mk

applying [3/6] https://yhetil.org/emacs/87jzytbbg2.fsf@localhost/
diff --git a/mk/default.mk b/mk/default.mk
index 4ad1a4281..b43a9b3ac 100644

Checking patch mk/default.mk...
Applied patch mk/default.mk cleanly.

skipping https://yhetil.org/emacs/87wn2ujk27.fsf@localhost/ for b43a9b3ac
index at:
100644 b43a9b3acfdce96efc112bc7da4f7b8540a36aaa	mk/default.mk

applying [4/6] https://yhetil.org/emacs/87jzytbbg2.fsf@localhost/
diff --git a/mk/default.mk b/mk/default.mk
index b43a9b3ac..67bf96c2e 100644

Checking patch mk/default.mk...
Applied patch mk/default.mk cleanly.

skipping https://yhetil.org/emacs/87wn2ujk27.fsf@localhost/ for 67bf96c2e
index at:
100644 67bf96c2e35020ff0e2cfd0ac79b392f7366c20b	mk/default.mk

applying [5/6] https://yhetil.org/emacs/87o7nsdkcw.fsf@localhost/
diff --git a/mk/default.mk b/mk/default.mk
index 67bf96c2e..92a3942da 100644


applying [6/6] https://yhetil.org/emacs/87o7nsdkcw.fsf@localhost/
diff --git a/mk/default.mk b/mk/default.mk
index 92a3942da..bd6efeb6f 100644

Checking patch mk/default.mk...
Applied patch mk/default.mk cleanly.
Checking patch mk/default.mk...
Applied patch mk/default.mk cleanly.

index at:
100644 bd6efeb6f5510e1a29107f974457bbd4aa3025b3	mk/default.mk

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.