Re: Trying to add non-standard configured things to Garnome ...



On Thu, 2005-04-21 at 13:05 -0400, Adam Worrall wrote:
> This isn't a Garnome issue, but you guys seem to know a lot about
> GAR, so ...
> 
> I've ended up adding a lot of extra stuff to the garnome build,
> which works wonderfully. However, I've bumped into problems
> with openSSL, which has a non-standard configure.
> 
> All I want to do is execute
> 
>   $ $(WORKSRC)/config --prefix=$(prefix)
> 
> So I setup the GAR makefile with
> 
>   CONFIGURE_SCRIPTS = $(WORKSRC)/config
>   CONFIGURE_ARGS = --prefix=$(prefix)
> 
> but this doesn't work; I get complaints about
> 
>  No rule to make target
> `configure-/my/gar/src/work/openssl/main.d/openssl-0.9.7g/config
> 
> because of some magic within gar.gnome.mk. On top of that, a
> load of extra arguments get passed to the configure script.
> 
> I've worked around this by creating my own files/configure script
> that I invoke from pre-configure:, but it's a bit hacky. Is there a
> nicer way to get this done ?
> 
> Many thanks for a lovely build system :)


Something like this may solve your issue:

  CONFIGURE_SCRIPTS = custom

  configure-custom:
	$(WORKSRC)/config --prefix=$(prefix)


We are using stuff like this in a few places, and locally I use this for
"extracting and copying only" tarballs.

...guenther


-- 
char *t="\10pse\0r\0dtu\0  ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}




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