Re: conditionally compile VM

2011-05-16 Thread Antoine Levitt
16/05/11 16:12, Sam Steingold
> 2011-05-16  Sam Steingold  
>
>   * Makefile (all): depend on vm only if VMDIR exists
>
> iff --git a/lisp/Makefile b/lisp/Makefile
> index 5829cf3..b383f1d 100644
> --- a/lisp/Makefile
> +++ b/lisp/Makefile
> @@ -61,7 +59,13 @@ DEPBINS=   ${DEPSRCS:.el=.elc}
>  SRCS=bbdb.el  $(DEPSRCS)
>  BINS=bbdb.elc $(DEPBINS)
>  
> -all: Makefile bbdb autoloadsc vm
> +ALL = Makefile bbdb autoloadsc
> +
> +ifneq ($(wildcard $(VMDIR)),)
> +ALL = $(ALL) vm
> +endif
> +
> +all: $(ALL)
>  
>  # Makefile: Makefile.in
>  #@echo "Makefile.in has changed, rerun configure!"

That seems useful, so people who don't use VM don't have to change the
rule manually. Might also be a good idea to remove the default value for
VMDIR (the way it is now, it's unlikely to be of much use to anyone, and
people who don't use VM have to remove the line manually), or to figure
out a way to get it automatically.

Also, while on the subject of makefiles, could somebody add an "install"
rule? (I'm not sure what the standard directory for .el/.elc files is, I
put mine in /usr/local/share/emacs/site-lisp/)


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


conditionally compile VM

2011-05-16 Thread Sam Steingold

2011-05-16  Sam Steingold  

* Makefile (all): depend on vm only if VMDIR exists

iff --git a/lisp/Makefile b/lisp/Makefile
index 5829cf3..b383f1d 100644
--- a/lisp/Makefile
+++ b/lisp/Makefile
@@ -61,7 +59,13 @@ DEPBINS= ${DEPSRCS:.el=.elc}
 SRCS=  bbdb.el  $(DEPSRCS)
 BINS=  bbdb.elc $(DEPBINS)
 
-all: Makefile bbdb autoloadsc vm
+ALL = Makefile bbdb autoloadsc
+
+ifneq ($(wildcard $(VMDIR)),)
+ALL = $(ALL) vm
+endif
+
+all: $(ALL)
 
 # Makefile: Makefile.in
 #  @echo "Makefile.in has changed, rerun configure!"

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X 
11.0.60900031
http://palestinefacts.org http://iris.org.il http://mideasttruth.com
http://camera.org http://dhimmi.com http://thereligionofpeace.com
Warning! Dates in calendar are closer than they appear!


--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/