X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=Makefile;h=e2fd85161cab00ac6bbec156c7e084ad4e0d7749;hb=6a613a5f80232912292e23de0541c1e2482d619c;hp=309b4040fcf88052b87c1872743f11d06559f1e9;hpb=b22b8e844935233e410d4ac0c77ac69042bd1413;p=elisp%2Fwanderlust.git diff --git a/Makefile b/Makefile index 309b404..e2fd851 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,33 @@ 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)