Some copy paths added to script. Playing with makefile.

This commit is contained in:
Phillip Lord 2015-11-06 08:25:03 +00:00
parent bb955f7670
commit 99bd67d4e7
2 changed files with 63 additions and 11 deletions

View file

@ -72,7 +72,49 @@ guidance is given for the organisation of resource files inside the
* Script
* The Move
** Makefile
Is single directory and doesn't work. Don't know how to do a recursive
make, but actually, the directory structure isn't too deep, so perhaps
we don't care; we can use wildcards with a few slashes in.
./emulation
./erc
./cedet
./cedet/semantic
./cedet/semantic/bovine
./cedet/semantic/decorate
./cedet/semantic/analyze
./cedet/semantic/symref
./cedet/semantic/wisent
./cedet/srecode
./cedet/ede
./vc
./eshell
./term
./play
./nxml
./gnus
./url
./mail
./mh-e
./obsolete
./textmodes
./language
./net
./international
./leim
./leim/ja-dic
./leim/quail
./org
./calc
./emacs-lisp
./calendar
./progmodes
** Helpers
@ -87,14 +129,13 @@ guidance is given for the organisation of resource files inside the
(s-join
"/"
(-butlast
(cdr
(--drop-while
(not (string= "lisp" it))
(split-string
(locate-library
(symbol-name
(symbol-at-point)))
"/"))))))))
(--drop-while
(not (string= "lisp" it))
(split-string
(locate-library
(symbol-name
(symbol-at-point)))
"/")))))))
#+end_src
** Move Script
@ -103,5 +144,11 @@ guidance is given for the organisation of resource files inside the
#+begin_src bash
mkdir lisp
mkdir c
cp add-log-tests.el vc
cp add-log-tests.el lisp/vc
cp advice-tests.el lisp/emacs-lisp/nadvice-tests.el
cp auth-source-tests.el lisp/gnus
cp auto-revert-tests.el lisp/autorevert-tests.el
cp bytecomp-tests.el lisp/emacs-lisp
cp calc-tests.el lisp/calc
cp cl-generic-tests.el lisp/emacs-lisp
#+end_src

View file

@ -99,10 +99,15 @@ WRITE_LOG = > $@ 2>&1 || { stat=ERROR; cat $@; }; echo $$stat: $@
$(emacs) -l ert -l $$loadfile \
-f ert-run-tests-batch-and-exit ${WRITE_LOG}
ELFILES = $(sort $(wildcard ${srcdir}/*.el))
ELFILES = $(sort $(wildcard ${srcdir}/*/*.el) $(wildcard ${srcdir}/*.el)
LOGFILES = $(patsubst %.el,%.log,$(notdir ${ELFILES}))
TESTS = ${LOGFILES:.log=}
ping:
echo elfiles $(ELFILES)
echo logfiles $(LOGFILES)
echo tests $(TESTS)
## If we have to interrupt a hanging test, preserve the log so we can
## see what the problem was.
.PRECIOUS: %.log