Create a custom target

2008-07-06 Thread Tavian Barnes
Hi, guys. I have a question: how do I create a custom target, and selectively compile some code, and run the compiled executable, when this target is chosen? Specifically, I have a benchmarking suite for a library I wrote, and I want to compile the code in the bench/ directory, and run the

Re: Create a custom target

2008-07-06 Thread Ralf Wildenhues
Hello Tavian, * Tavian Barnes wrote on Sun, Jul 06, 2008 at 07:28:30AM CEST: Hi, guys. I have a question: how do I create a custom target, and selectively compile some code, and run the compiled executable, when this target is chosen? Specifically, I have a benchmarking suite for a library

Re: correct windres use

2008-07-06 Thread Ralf Wildenhues
Hello Vincent * Vincent Torri wrote on Fri, Jul 04, 2008 at 03:26:48PM CEST: On Fri, 4 Jul 2008, Ralf Wildenhues wrote: .rc.lo: $(LIBTOOL) --tag=RC --mode=compile $(WINDRES) -c $ -o $@ ok. I'll try that. Btw, is it $(RC) or $(WINDRES) ? Because in the Makefile, RC is set to my

Re: Compiling statically

2008-07-06 Thread Ralf Wildenhues
Hello Paulo, * Paulo J. Matos wrote on Thu, Jun 26, 2008 at 02:34:50PM CEST: To compile a program fully-statically I do: ./configure CPPFLAGS=-DNDEBUG -I../../libfileIO-0.2.3/src CXXFLAGS=-O3 LDFLAGS=-static-libgcc -static -Wl,-Bstatic -L../../libfileIO-0.2.3/src You can try something like

Re: correct windres use

2008-07-06 Thread Vincent Torri
Hey, Typo of mine, sorry about that. Probably you'll want a rule such as .rc.lo: $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -c $ -o $@ Last question: when I use -c, windres hangs. When I do not use it, it seems to work. Is -c really

Re: correct windres use

2008-07-06 Thread Ralf Wildenhues
* Vincent Torri wrote on Sun, Jul 06, 2008 at 07:38:04PM CEST: Typo of mine, sorry about that. Probably you'll want a rule such as .rc.lo: $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(RCFLAGS) -c $ -o $@ Last question: when I use -c, windres hangs.

Re: Create a custom target

2008-07-06 Thread Tavian Barnes
Okay, but how do I then get automake to handle the compilation? I don't want to type in the compilation commands myself; that's what automake is for. If I add the benchmarking program to noinst_PROGRAMS, it compiles when 'make' is run, rather than only when 'make bench' is run. Also, when I

Where to do post installation?

2008-07-06 Thread Steven Woody
Hi, After 'make install', I want to do some post-install things such as creating some directories, run a script etc. What is valid method in Makefile.am to do this? Thank you.

Re: Create a custom target

2008-07-06 Thread Ralf Wildenhues
Hello Tavian, please don't top-post, thank you. * Tavian Barnes wrote on Sun, Jul 06, 2008 at 07:45:23PM CEST: On Sun, Jul 6, 2008 at 1:59 AM, Ralf Wildenhues [EMAIL PROTECTED] wrote: Most of the Makefile.am text is copied verbatim into the Makefile.in (and from there into the Makefile).

Re: Where to do post installation?

2008-07-06 Thread Ralf Wildenhues
Hello Steven, * Steven Woody wrote on Mon, Jul 07, 2008 at 07:20:44AM CEST: After 'make install', I want to do some post-install things such as creating some directories, run a script etc. What is valid method in Makefile.am to do this? Thank you. Write rules for install-exec-hook and/or