Help: makefile question

Help: makefile question

Post by Scott Danie » Thu, 12 Apr 2001 02:22:30



To: comp.unix.questions

I wish to have a certain command executed each time _any_ target
in my Makefile is run. Is there a way I can do this ?

TIA
Scott Daniels

--
Posted from femail9.sdc1.sfba.home.com [24.0.95.89]
via Mailgate.ORG Server - http://www.Mailgate.ORG

 
 
 

Help: makefile question

Post by Naresh Chainan » Fri, 13 Apr 2001 03:36:05


There are special built-in make targets,
.INIT : If defined in the makefile, this  target  and its  dependencies
are built before any other targets are processed.

So, in your makefile you would have :
.INIT :
<Tab><your_command>

There are other spicial rules like
.DONE
.FAILED and so on,
see your man page for details.

Naresh


> To: comp.unix.questions

> I wish to have a certain command executed each time _any_ target
> in my Makefile is run. Is there a way I can do this ?

> TIA
> Scott Daniels

> --
> Posted from femail9.sdc1.sfba.home.com [24.0.95.89]
> via Mailgate.ORG Server - http://www.Mailgate.ORG


 
 
 

1. Makefile Question (help needed)

Hello,

I am having a problem with Makefiles, I do not know how to have my makefile
do the folllowing:

        Write a makefile that will copy a file from directory A to
        directory B. The file to be copied is a source file, and
        its name is an environment variable , as are directories
        A and B. The copy should take place only when the date of the
        the file in directory B is earlier than the date of the file in
        directory A.

Any help will be appreciated.

Thanks in advance,

ed miner

2. problem with Diamond Stealth 64 2M VRAM

3. diff -rcN ups-2.45.2/Makefile ups/Makefile

4. Linux Page

5. sed/awk - generating Makefiles (Re: awk processing of Makefile macros)

6. Scheduling of low-priority background processes

7. GCC: "makefile" not "Makefile"?

8. Taking a moment to damn Open Firmware

9. cvs commit: ports/java Makefile ports/java/forte Makefile distinfo (fwd)

10. prototype Makefiles - sharing Makefiles between projects

11. GCC: "makefile" not "Makefile"?

12. how to convert unix makefile to windows makefile....

13. Modules 1.3.57 makefile results in makefile error