Re: How do I configure Makefile.am to run a program?

2008-04-02 Thread David Fang
Don't use make to do this - just use autoconf, and let your configure script deal with it: configure.ac AC_INIT(...) ... svnrev=`svnversion .` AC_SUBST(svnrev) ... AC_CONFIG_FILES([Makefile ... poll.spec) AC_OUTPUT Now create a file called poll.spec.in that contains an

Re: How do I configure Makefile.am to run a program?

2008-03-25 Thread Bernd Jendrissek
On Sun, Mar 23, 2008 at 7:27 AM, John Calcote [EMAIL PROTECTED] wrote: Thanks, but the problem with this solution is that I would have to rerun the .configure step each time. Forgetting to do that is as as easy as forgetting to edit the spec file. How do you know that you've committed

Re: How do I configure Makefile.am to run a program?

2008-03-25 Thread Jim Lynch
On Tue, Mar 25, 2008 at 10:30 AM, Bernd Jendrissek [EMAIL PROTECTED] wrote: On Sun, Mar 23, 2008 at 7:27 AM, John Calcote [EMAIL PROTECTED] wrote: Thanks, but the problem with this solution is that I would have to rerun the .configure step each time. Forgetting to do that is as as

Re: How do I configure Makefile.am to run a program?

2008-03-22 Thread Jim Lynch
On Fri, Mar 21, 2008 at 3:28 PM, John Calcote [EMAIL PROTECTED] wrote: Jim, Don't use make to do this - just use autoconf, and let your configure script deal with it: configure.ac AC_INIT(...) ... svnrev=`svnversion .` AC_SUBST(svnrev) ... AC_CONFIG_FILES([Makefile ...

Re: How do I configure Makefile.am to run a program?

2008-03-22 Thread Jim Lynch
On Fri, Mar 21, 2008 at 3:57 PM, Harlan Stenn [EMAIL PROTECTED] wrote: I like to include my subversion version number in my rpm spec file so I can keep track of the source used to generate the binary. I've been manually changing it but since I forget to sometimes, I'd like for make to

Re: How do I configure Makefile.am to run a program?

2008-03-22 Thread Harlan Stenn
You typo'd. I wrote BUILT_SOURCES= ... Check out the docs. H -- On Fri, Mar 21, 2008 at 3:57 PM, Harlan Stenn [EMAIL PROTECTED] wrote: I like to include my subversion version number in my rpm spec file so I can keep track of the source used to generate the binary. I've been

Re: How do I configure Makefile.am to run a program?

2008-03-22 Thread John Calcote
Jim, Thanks, but the problem with this solution is that I would have to rerun the .configure step each time. Forgetting to do that is as as easy as forgetting to edit the spec file. Don't take this wrong - I totally believe you. But, I'm trying to figure out why this has never been a problem

How do I configure Makefile.am to run a program?

2008-03-21 Thread Jim Lynch
I like to include my subversion version number in my rpm spec file so I can keep track of the source used to generate the binary. I've been manually changing it but since I forget to sometimes, I'd like for make to generate the spec file for me. I wrote a small perl program that reads a template

Re: How do I configure Makefile.am to run a program?

2008-03-21 Thread John Calcote
Jim, I like to include my subversion version number in my rpm spec file so I can keep track of the source used to generate the binary. I've been manually changing it but since I forget to sometimes, I'd like for make to generate the spec file for me. I wrote a small perl program that reads a

Re: How do I configure Makefile.am to run a program?

2008-03-21 Thread Harlan Stenn
I like to include my subversion version number in my rpm spec file so I can keep track of the source used to generate the binary. I've been manually changing it but since I forget to sometimes, I'd like for make to generate the spec file for me. I wrote a small perl program that reads a

Re: How do I configure Makefile.am to run a program?

2008-03-21 Thread Harlan Stenn
You may also want: noinst_DATA = poll.spec H I like to include my subversion version number in my rpm spec file so I can keep track of the source used to generate the binary. I've been manually changing it but since I forget to sometimes, I'd like for make to generate the spec file for