Sep 30, 2014 #1 U 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
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
Oct 1, 2014 #2 yadavvlsi Advanced Member level 3 Joined Nov 19, 2010 Messages 977 Helped 487 Reputation 972 Reaction score 459 Trophy points 1,343 Location Bangalore, India Activity points 6,991 Please check below document. https://www.gnu.org/software/make/manual/make.pdf
Oct 2, 2014 #3 J jbeniston Advanced Member level 1 Joined May 5, 2005 Messages 460 Helped 106 Reputation 214 Reaction score 73 Trophy points 1,308 Activity points 3,494 The 'clean' target usually deletes temporary / intermediate and dependency files.
Oct 2, 2014 #4 U 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 . 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?
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?
Oct 2, 2014 #5 J jbeniston Advanced Member level 1 Joined May 5, 2005 Messages 460 Helped 106 Reputation 214 Reaction score 73 Trophy points 1,308 Activity points 3,494 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.
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.
Oct 2, 2014 #6 U 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 Would you please let me know how "Makefile" should handle timestamp? Last edited: Oct 2, 2014