[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: first time automaking question
From: |
Sean Finney |
Subject: |
Re: first time automaking question |
Date: |
Tue, 16 Apr 2002 00:28:54 -0500 |
User-agent: |
Mutt/1.2.5i |
On Thu, Apr 11, 2002 at 09:33:15AM -0400, Steve M. Robbins wrote:
> You can completely disable these "maintainer rules" in the
> *distributed* makefiles via the AM_MAINTAINER_MODE macro. Look it up
> in the automake docs.
hey cool, that's exactly what I was looking for. I didn't even think of
using it before because the name led me to believe that it enabled other
maintainer stuff that was by default disabled :)
okay, I have one more question, then i promise to leave you all be...
my lab partner and i have dove rather deeply into the pool of metaprogramming,
and part of our project is automatically generated by a different part of
the project. I've already been able to wiggle my previous makefile rules
for these automatically generated .[c,h] files into Makefile.am
compilation process, but now I'm having trouble getting rid of them. I
want during 'make distclean' to get rid of a specific set of files that
I have previously defined elsewhere to ${AUTOGEN}. I've tried the approach
that seemed to make the most sense from the web docs (nodist_XXX) but
alas, it doesn't seem to work. so i have something like this:
PROGS:=p1 p2
AUTOGEN:=ag1.c ag1.h ag2.c ag2.h
bin_PROGRAMS=${PROGS}
p1_SOURCES=${AUTOGEN} p1-main.c foo.c blah.c
p2_SOURCES=${AUTOGEN} p2-main.c bar.c blah.c
nodist_p1_SOURCES=${AUTOGEN}
but when i do automake, I get the following error:
Makefile.am:7: invalid unused variable name: `nodist_p1_SOURCES'
is there something I'm doing wrong? Is there a better way to do what I'd
like to do? also, I saw that there was a 'hook' option for some targets,
so I tried distclean-hook to see if I could just sneak it in that way,
but again, alas...
thanks,
--sean
- Re: maintainer mode, (continued)
- Re: maintainer mode, Alexandre Duret-Lutz, 2002/04/11
- Re: maintainer mode, Bruce Korb, 2002/04/11
- Re: maintainer mode, Alexandre Duret-Lutz, 2002/04/12
- Re: maintainer mode, Roger Leigh, 2002/04/11
- Re: maintainer mode, Alexandre Duret-Lutz, 2002/04/12
- Re: maintainer mode, Roger Leigh, 2002/04/12
- Re: first time automaking question,
Sean Finney <=
- Re: first time automaking question, Eric Siegerman, 2002/04/16