[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Makefile to Makefile.am
From: |
Thien-Thi Nguyen |
Subject: |
Re: Makefile to Makefile.am |
Date: |
Sun, 15 Aug 2010 19:02:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
() "samson.pierre" <address@hidden>
() Sun, 15 Aug 2010 03:09:50 +0200 (CEST)
> > %.bmp: %.xcf
> > $(GIMP) -i -b '(xcf-bmp "$<" "$@")' -b '(gimp-quit 0)'
Is there an equivalent or anything else which can help me to write this
rule avoiding this warning message?
I think here you can use something like:
.xcf.bmp:
$(GIMP) -i -b '(xcf-bmp "$<" "$@")' -b '(gimp-quit 0)'
Note the order is PREREQ-EXT before TARGET-EXT, which is opposite
of the pattern rule order. Probably Automake manual (and its readers)
could benefit from changing the mysterious:
We do not discuss pattern rules here because they are not
portable, but they can be convenient in packages that assume GNU
`make'.
to something like:
Although pattern rules are not portable, they can be convenient
in packages that assume GNU `make'. In the common case where
the pattern rule is used to match the stem of a filename, you
can use the old fashioned suffix rule (pxref here) instead.
For example:
# pattern rule, not portable
%.bmp : %.xcf
$(GIMP) -i -b '(xcf-bmp "$<" "$@")' -b '(gimp-quit 0)'
# old fashioned suffix rule, portable
.xcf.bmp:
$(GIMP) -i -b '(xcf-bmp "$<" "$@")' -b '(gimp-quit 0)'
Hey, maybe Automake hackers can riff off this thread in time for
the next release... (or, "Would you like me to submit a patch?").
- Re: Makefile to Makefile.am, (continued)
- Re: Makefile to Makefile.am, samson.pierre, 2010/08/14
- Re: Makefile to Makefile.am, John Calcote, 2010/08/15
- Re: Makefile to Makefile.am, Bob Friesenhahn, 2010/08/16
- Re: Makefile to Makefile.am, John Calcote, 2010/08/16
- GNU make or portable make? (was: Makefile to Makefile.am), Ralf Wildenhues, 2010/08/17
- Re: GNU make or portable make? (was: Makefile to Makefile.am), Roger Leigh, 2010/08/17
- Re: GNU make or portable make? (was: Makefile to Makefile.am), Robert J. Hansen, 2010/08/17
- Re: GNU make or portable make?, Tom Tromey, 2010/08/17
- Re: GNU make or portable make?, Bob Friesenhahn, 2010/08/17
- Re: GNU make or portable make?, Ralf Wildenhues, 2010/08/18
Re: Makefile to Makefile.am,
Thien-Thi Nguyen <=
Re: Makefile to Makefile.am, Paul Smith, 2010/08/15
Re: Makefile to Makefile.am, Ralf Wildenhues, 2010/08/16