X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=Makefile;h=e81ef195e8097635237fd79b469e054805b881c7;hb=697dc1db8069eea6fa28386c2271ccbeb3618898;hp=57c1aef5c432d526d15f9a7a832c3189f54580f2;hpb=32349971724768a46901c004c6b8853b08391682;p=elisp%2Fwanderlust.git diff --git a/Makefile b/Makefile index 57c1aef..e81ef19 100644 --- a/Makefile +++ b/Makefile @@ -28,28 +28,68 @@ BATCHFLAG = -batch FLAGS = $(BATCHFLAG) -q -no-site-file elc: - $(EMACS) $(FLAGS) -l WL-MK -f compile-wl-package $(LISPDIR) $(PIXMAPDIR) + $(EMACS) $(FLAGS) -l WL-MK -f compile-wl-package \ + $(LISPDIR) $(PIXMAPDIR) check: - $(EMACS) $(BATCHFLAG) -l WL-MK -f check-wl $(LISPDIR) $(PIXMAPDIR) + $(EMACS) $(BATCHFLAG) -l WL-MK -f check-wl \ + $(LISPDIR) $(PIXMAPDIR) test: - $(EMACS) $(FLAGS) -l WL-MK -f test-wl $(LISPDIR) $(PIXMAPDIR) + $(EMACS) $(FLAGS) -l WL-MK -f test-wl \ + $(LISPDIR) $(PIXMAPDIR) + +update-version: + $(EMACS) $(FLAGS) -l WL-MK -f update-version \ + $(LISPDIR) $(PIXMAPDIR) + +compile-strict: clean-elc + @args="$(FLAGS)";\ + args="$$args -L elmo -L wl";\ + echo "=============================================";\ + echo "Compiling the 1st stage-----without elc files";\ + echo "=============================================";\ + for i in `$(EMACS) $(FLAGS) -l WL-MK -f wl-examine-modules 2>/dev/null`;\ + do\ + j=`echo $$i| sed 's/elc$$/el/g'`;\ + echo "$(EMACS) ARGS -f batch-byte-compile $$j";\ + $(EMACS) $$args -f batch-byte-compile $$j;\ + mv $$i $$j"x";\ + done;\ + for i in `echo elmo/*.elx wl/*.elx utils/*.elx`; do\ + j=`echo $$i| sed 's/elx$$/elc/g'`;\ + mv $$i $$j;\ + done;\ + echo "==============================================";\ + echo "Compiling the 2nd stage-----with all elc files";\ + echo "==============================================";\ + for i in `$(EMACS) $(FLAGS) -l WL-MK -f wl-examine-modules 2>/dev/null`;\ + do\ + j=`echo $$i| sed 's/elc$$/el/g'`;\ + echo "$(EMACS) ARGS -f batch-byte-compile $$j";\ + $(EMACS) $$args -f batch-byte-compile $$j;\ + done install-elc: - $(EMACS) $(FLAGS) -l WL-MK -f install-wl-package $(LISPDIR) $(PIXMAPDIR) + $(EMACS) $(FLAGS) -l WL-MK -f install-wl-package \ + $(LISPDIR) $(PIXMAPDIR) uninstall-elc: - $(EMACS) $(FLAGS) -l WL-MK -f uninstall-wl-package $(LISPDIR) $(PIXMAPDIR) + $(EMACS) $(FLAGS) -l WL-MK -f uninstall-wl-package \ + $(LISPDIR) $(PIXMAPDIR) clean-elc: - rm -f wl/*.elc wl/*~ wl/auto-autoloads.el wl/custom-load.el elmo/*.elc utils/*.elc utils/hmac/lisp/*.elc + rm -f wl/*.elc wl/*~ wl/auto-autoloads.el wl/custom-load.el \ + wl/wl-news.el elmo/*.elc utils/*.elc \ + wl/*.elx elmo/*.elx utils/*.elx package: - $(XEMACS) $(FLAGS) -l WL-MK -f compile-wl-package-xmas $(PACKAGEDIR) $(PIXMAPDIR) + $(XEMACS) $(FLAGS) -l WL-MK -f compile-wl-package-xmas \ + $(PACKAGEDIR) $(PIXMAPDIR) install-package: - $(XEMACS) $(FLAGS) -l WL-MK -f install-wl-package-xmas $(PACKAGEDIR) $(PIXMAPDIR) + $(XEMACS) $(FLAGS) -l WL-MK -f install-wl-package-xmas \ + $(PACKAGEDIR) $(PIXMAPDIR) info: $(EMACS) $(FLAGS) -l WL-MK -f wl-texinfo-format $(INFODIR) @@ -58,7 +98,8 @@ install-info: $(EMACS) $(FLAGS) -l WL-MK -f install-wl-info $(INFODIR) mostlyclean-info: - rm -f doc/*~ doc/*.cp doc/*.fn doc/*.ky doc/*.pg doc/*.tp doc/*.vr doc/*.cps doc/*.fns doc/*.kys doc/*.pgs doc/*.tps doc/*.vrs + rm -f doc/*~ doc/*.cp doc/*.fn doc/*.ky doc/*.pg doc/*.tp doc/*.vr \ + doc/*.cps doc/*.fns doc/*.kys doc/*.pgs doc/*.tps doc/*.vrs clean-info: mostlyclean-info rm -f doc/*.info doc/*.info-*