This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Need help for an old makefile
- From: "Dima Sorkin" <dima dot sorkin at gmail dot com>
- To: mahmoodn <nt_mahmood at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 18 Apr 2008 13:51:22 +0300
- Subject: Re: Need help for an old makefile
- References: <16722559.post@talk.nabble.com>
Hi.
This make file should work. Indeed its syntax is old.
GNU make style for implicit rules is described here
http://www.gnu.org/software/make/manual/make.html#Implicit-Rules
I added little example below. You could me answered much better here
http://savannah.gnu.org/mail/?group=make
Regards,
Dima.
On Wed, Apr 16, 2008 at 6:36 PM, mahmoodn <nt_mahmood@yahoo.com> wrote:
>
> Hello,
> I have an old makefile and I want to run it but it can not be "make"ed. How
> can I convert it to current version of makefile?:confused:
> .H.h:
> m4 ${MACROS} $*.H > $*.h
%.h : %.H
m4 ${MACROS} $< > $@