[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Makefile to Makefile.am
From: |
Ralf Wildenhues |
Subject: |
Re: Makefile to Makefile.am |
Date: |
Sat, 14 Aug 2010 08:24:27 +0200 |
User-agent: |
Mutt/1.5.20 (2010-04-22) |
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:
<http://www.gnu.org/software/automake/manual/html_node/Autotools-Introduction.html>
Cheers,
Ralf
- Makefile to Makefile.am, samson.pierre, 2010/08/14
- Re: Makefile to Makefile.am,
Ralf Wildenhues <=
- 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