[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Makefile to Makefile.am
From: |
samson.pierre |
Subject: |
Re: Makefile to Makefile.am |
Date: |
Sun, 15 Aug 2010 03:09:50 +0200 (CEST) |
> Message du 14/08/10 08:24
> De : "Ralf Wildenhues"
> A : "samson.pierre"
> Copie à : address@hidden
> Objet : Re: Makefile to Makefile.am
>
>
> Hello,
>
> * samson.pierre wrote on Sat, Aug 14, 2010 at 04:01:15AM CEST:
> > GIMP=gimp
> > RM=rm -rfv
> > BMP=bat.bmp beaver.bmp brown_bear.bmp cow.bmp coypu.bmp dromedary.bmp
> > eel.bmp elephant.bmp giraffe.bmp golden_eagle.bmp great_white_shark.bmp
> > hammerhead_shark.bmp human.bmp hyena.bmp jackal.bmp jellyfish.bmp lion.bmp
> > lynx.bmp moose.bmp oryx.bmp otter.bmp scorpion.bmp spider.bmp squirrel.bmp
> > zebra.bmp
> >
> > all: $(BMP)
> >
> > %.bmp: %.xcf
> > $(GIMP) -i -b '(xcf-bmp "$<" "$@")' -b '(gimp-quit 0)'
> >
> > clean:
> > $(RM) *.bmp
> > ---
> >
> > Can you write a Makefile.am which can help to generate a Makefile
> > nearly the same as this Makefile?
>
> Yes. You simply 'mv Makefile Makefile.am' and replace 'all' with
> 'all-local' and 'clean' with 'clean-local'. That's it!
>
> Of course you still need to write a configure.ac file and so on, but I
> guess you can find yourself though there by reading through the Hello
> World example in the introduction of the manual:
>
>
> Cheers,
> Ralf
>
>
>
Yes it works :-)
But I see a little warning when I call autoreconf :
`%'-style pattern rules are a GNU make extension
I think it is because I use this character ‘%’ in my rules. But this ‘%’ is
very interesting to define an implicit rules.
Is there an equivalent or anything else which can help me to write this rule
avoiding this warning message?
Une messagerie gratuite, garantie à vie et des services en plus, ça vous tente ?
Je crée ma boîte mail www.laposte.net
- Makefile to Makefile.am, samson.pierre, 2010/08/14
- Re: Makefile to Makefile.am,
samson.pierre <=
- 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, 2010/08/15