From 97c50971465ff7f49ef2f57b3c09060939778727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Delafond?= Date: Tue, 25 Aug 2015 12:27:35 +0200 Subject: Imported Upstream version 8.3.1 --- mk/default.mk | 51 +++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 37 insertions(+), 14 deletions(-) (limited to 'mk/default.mk') diff --git a/mk/default.mk b/mk/default.mk index eb7fac7..72068d1 100644 --- a/mk/default.mk +++ b/mk/default.mk @@ -22,6 +22,10 @@ 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 = + # Define if you want to include some (or all) files from contrib/lisp # just the filename please (no path prefix, no .el suffix), maybe with globbing #ORG_ADD_CONTRIB = ox-* # e.g. the contributed exporter @@ -39,8 +43,9 @@ BTEST_POST = # -L /ert # needed for Emacs23, Emacs24 has ert built in # -L /ess # needed for running R tests # -L /htmlize # need at least version 1.34 for source code formatting -BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave python sh perl +BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave perl python # 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 @@ -50,23 +55,41 @@ BTEST_EXTRA = # How to run tests req-ob-lang = --eval '(require '"'"'ob-$(ob-lang))' +lst-ob-lang = ($(ob-lang) . t) req-extra = --eval '(require '"'"'$(req))' -BTEST = $(BATCH) \ - $(BTEST_PRE) \ - --eval '(add-to-list '"'"'load-path "./lisp")' \ - --eval '(add-to-list '"'"'load-path "./testing")' \ - $(BTEST_POST) \ +BTEST_RE ?= \\(org\\|ob\\) +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) + +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 testing/org-test.el \ - $(foreach ob-lang,$(BTEST_OB_LANGUAGES),$(req-ob-lang)) \ + -l cl -l testing/org-test.el \ + -l ert -l org -l ox \ $(foreach req,$(BTEST_EXTRA),$(req-extra)) \ - --eval '(setq org-confirm-babel-evaluate nil)' \ - -f org-test-run-batch-tests + --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 + +# start Emacs with no user and site configuration +# EMACSQ = -vanilla # XEmacs +EMACSQ = $(EMACS) -Q # Using emacs in batch mode. -# BATCH = $(EMACS) -batch -vanilla # XEmacs -BATCH = $(EMACS) -batch -Q \ - --eval '(setq vc-handled-backends nil)' +BATCH = $(EMACSQ) -batch \ + --eval '(setq vc-handled-backends nil org-startup-folded nil)' # Emacs must be started in toplevel directory BATCHO = $(BATCH) \ @@ -103,7 +126,7 @@ ELC = $(BATCHL) \ --eval '(batch-byte-compile)' # How to make a pdf file from a texinfo file -TEXI2PDF = texi2pdf --batch --clean +TEXI2PDF = texi2pdf --batch --clean --expand # How to make a pdf file from a tex file PDFTEX = pdftex -- cgit v1.2.3