gnucap-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnucap-devel] git repo proposal


From: Felix Salfelder
Subject: Re: [Gnucap-devel] git repo proposal
Date: Mon, 27 May 2013 08:48:33 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Hi Al.

On Mon, May 27, 2013 at 02:20:39AM -0400, al davis wrote:
> Several cases here ..
> 
> load foo.va
> load foo.c
> load foo.cc
> load foo.cpp

think of a makefile rules.mk that is installed to 
$prefix/share/gnucap (that is the default autotools:$pkgdatadir)

rules.mk.in looks like (roughly, for example)

VPATH=..
.so: %.cc
        @CXX@ @CPPFLAGS@ [ .. we know that] $< -o $@

based on the extension,
".load foo.cc"
runs mkdir .gctmp; make -f @pkgdatadir@/rules.mk -C .gctmp foo.so and
finally loads foo.so.

some finetuning is required, but i see absolutely no problem here.

> load foo (a directory)

walk all entries of foo recursively? (take care of where .gctmp is, as
foo might be readonly!). 

regards
felix

PS: this is not about the build system, you can as well fill rules.mk
with your favourite program. $pkgdatadir is no magic either. just
convenient.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]