Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

does anyone know this makefile?

Status
Not open for further replies.

u24c02

Advanced Member level 1
Joined
May 8, 2012
Messages
404
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,298
Activity points
4,101
Hi.
I trying to study Makefile. But I have some questions.

1. What is the .PHONY 's function?

2. When I run 'simz', Which lines are executed?

3. clean: * you can see the "subdirs_clean", What is having a meaning? And What is having a purpose?



.PHONY: all clean simz


all:

@echo "[all] : OK."


simz:

*- /bin/rm -rf app

**$(/simz/BUILD/run)


clean: * subdirs_clean

- /bin/rm -f Makefile.depend


veryclean : subdirs_verycle


gethash :

*Xxxxxxxxxx
 

The 'clean' target usually deletes temporary / intermediate and dependency files.
 

Hi .
After I have compiled makefile, when I once trying to make make again. But I can have nothing result with any warning messages or error messages.

So how can I re-compile?
And how makefile does know it have been make by make?
 

A makefile basically lists input files and output target files.

It only rebuilds if the timestamps on the input files are newer than the output files.

Use 'make clean all' to delete all the output files and force a rebuild.
 

Would you please let me know how "Makefile" should handle timestamp?
 
Last edited:

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top