Revision: 5796 http://gar.svn.sourceforge.net/gar/?rev=5796&view=rev Author: bdwalton Date: 2009-08-01 12:49:48 +0000 (Sat, 01 Aug 2009)
Log Message: ----------- GAR: Add COMPILE_ELISP to allow for automatic handling of .elc compilation Modified Paths: -------------- csw/mgar/gar/v2/gar.conf.mk csw/mgar/gar/v2/gar.lib.mk csw/mgar/gar/v2/gar.mk Modified: csw/mgar/gar/v2/gar.conf.mk =================================================================== --- csw/mgar/gar/v2/gar.conf.mk 2009-08-01 08:56:44 UTC (rev 5795) +++ csw/mgar/gar/v2/gar.conf.mk 2009-08-01 12:49:48 UTC (rev 5796) @@ -31,6 +31,8 @@ MANIFEST_FILE ?= manifest LOGDIR ?= log +ELISP_DIRS ?= $(datadir)/emacs/site-lisp $(EXTRA_ELISP_DIRS) + GIT_PROXY_SCRIPT ?= $(abspath $(GARBIN))/gitproxy GIT_DEFAULT_TRACK = +refs/heads/master:refs/remotes/origin/master Modified: csw/mgar/gar/v2/gar.lib.mk =================================================================== --- csw/mgar/gar/v2/gar.lib.mk 2009-08-01 08:56:44 UTC (rev 5795) +++ csw/mgar/gar/v2/gar.lib.mk 2009-08-01 12:49:48 UTC (rev 5796) @@ -730,6 +730,19 @@ gfind $(DESTDIR) -type f -iname *.[1-8] -size +2 -print | \ gxargs -r gzip --force +compile-elisp: + @(for d in $(ELISP_DIRS); do \ + echo " ===> Compiling .el files in $$d"; \ + cd $(PKGROOT)/$$d; \ + for f in `find . -name "*el"`; do \ + bf=`basename $$f`; \ + bd=`dirname $$f`; \ + cd $$bd; \ + emacs -L $(PKGROOT)/$$d -L $(PKGROOT)/$$d/$$bd $(EXTRA_EMACS_ARGS) -batch -f batch-byte-compile "$$bf"; \ + cd $(PKGROOT)/$$d; \ + done; \ + done) + include $(addprefix $(GARDIR)/,$(EXTRA_LIBS)) # Mmm, yesssss. cookies my preciousssss! Mmm, yes downloads it Modified: csw/mgar/gar/v2/gar.mk =================================================================== --- csw/mgar/gar/v2/gar.mk 2009-08-01 08:56:44 UTC (rev 5795) +++ csw/mgar/gar/v2/gar.mk 2009-08-01 12:49:48 UTC (rev 5796) @@ -598,7 +598,7 @@ _PAX_ARGS = $(_INC_EXT_RULE) $(EXTRA_PAX_ARGS_$(MODULATION)) $(EXTRA_PAX_ARGS) # The basic merge merges the compiles for all ISAs on the current architecture -merge: checksum pre-merge $(addprefix merge-,$(MODULATIONS)) merge-license $(if $(NOSOURCEPACKAGE),,merge-src) post-merge +merge: checksum pre-merge $(addprefix merge-,$(MODULATIONS)) merge-license $(if $(COMPILE_ELISP),compile-elisp) $(if $(NOSOURCEPACKAGE),,merge-src) post-merge @$(DONADA) # This merges the This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ devel mailing list devel@lists.opencsw.org https://lists.opencsw.org/mailman/listinfo/devel