X-Git-Url: https://cgit.sxemacs.org/?p=riece;a=blobdiff_plain;f=lisp%2FCOMPILE;h=05d22621632b47a6f78bd61f978eefba5f6b4984;hp=d74f99858a8b8759aef4431764f3923ac3fa2421;hb=f122c84911506faa07b9033c868b1628567d4e67;hpb=beb805c4f0168412f470a7828f4cd437ffbde8e5 diff --git a/lisp/COMPILE b/lisp/COMPILE index d74f998..05d2262 100644 --- a/lisp/COMPILE +++ b/lisp/COMPILE @@ -7,6 +7,7 @@ 'riece-emacs) '(riece-globals riece-options + riece-debug riece-version riece-coding riece-complete @@ -72,22 +73,42 @@ riece-biff riece-kakasi riece-yank - riece-toolbar)))) + riece-toolbar + riece-eval + riece-google + riece-keepalive)))) (defvar riece-icons - '(riece-command-previous-channel - riece-command-next-channel)) + '(riece-command-quit + riece-command-join + riece-command-part + riece-command-previous-channel + riece-command-next-channel + riece-command-change-layout + riece-submit-bug-report)) (defun riece-compile-modules (modules) - (let ((load-path (cons nil load-path))) + (let ((load-path (cons nil load-path)) + error-modules) (while modules (let ((source (expand-file-name (concat (symbol-name (car modules)) ".el")))) (if (file-newer-than-file-p source (concat source "c")) (condition-case error (byte-compile-file source) - (error)))) - (setq modules (cdr modules))))) + (error + (setq error-modules (cons (car modules) error-modules)))))) + (setq modules (cdr modules))) + (if error-modules + (princ (concat "\n\ + WARNING: --------------------------------------------------------- + WARNING: Couldn't compile following modules: + WARNING: + WARNING: " (mapconcat #'symbol-name error-modules ", ") "\n\ + WARNING: + WARNING: You should probably stop here, try \"make distclean\" to clear + WARNING: the last build, and then reconfigure. + WARNING: ---------------------------------------------------------\n\n"))))) (defun riece-install-modules (modules dest just-print) (unless (or just-print (file-exists-p dest)) @@ -114,11 +135,12 @@ (make-directory dest t)) (while icons (let ((name (symbol-name (car icons)))) - (princ (format "%s.xpm -> %s\n" name dest)) - (unless just-print - (copy-file (expand-file-name (concat name ".xpm")) - (expand-file-name (concat name ".xpm") dest) - t t))) + (when (file-exists-p (expand-file-name (concat name ".xpm"))) + (princ (format "%s.xpm -> %s\n" name dest)) + (unless just-print + (copy-file (expand-file-name (concat name ".xpm")) + (expand-file-name (concat name ".xpm") dest) + t t)))) (setq icons (cdr icons)))) (defun riece-install-just-print-p ()