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
> Indeed its syntax is old.
> .H.h:
> m4 ${MACROS} $*.H > $*.h
%.h : %.H
m4 ${MACROS} $< > $@
The problem is about m4. I get an error "m4 unrecognized". How can I fix it?
It seems that oldr versions used m4, but I don't know what happened to it in
newer version.
Dima Sorkin-2 wrote:
>
> 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} $< > $@
>
>
--
View this message in context: http://www.nabble.com/Need-help-for-an-old-makefile-tp16722559p16769706.html
Sent from the gcc - Help mailing list archive at Nabble.com.