Re: Need help for an old makefile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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@xxxxxxxxx> 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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux