There is a very serious error in the last line of your Makefile: rm -rf *o hello The argument "*o" means every file whose name ends with "o", not just ".o". I.e. this command would also delete "hello", "foo" and anything like that. As far as you only intend to delete the object files, the command should looks like this: rm -rf *.o hello
But co-incidentally, the main target name, hello, also ends with "o", so, just for ***this*** example directory, rm -rf *o is sufficient, for the removal job. Anyway, the point is, you don't keep redundant files in your project dir.
Awesome! I knew almost nothing before about Makefiles, but after this video I was able to understand what are the targets, what are the dependencies, when you need to use tab and why, when to use space, and how to write clear and modular makefiles! It explains things very very clearly. Thank you man!
We have OOM in our first semester and I was not getting any idea of makefiles and now after watching this video I can even explain makefiles really well! This is super helpful!
Thanks, great tutorial. Makefiles were pretty confusing. But, now that I've watched you build one, I have a much better understanding of their functionality. Thank you. Loved the video. Favorited your website, as well.
Just wanted to drop a comment saying that this video really helped me. Last assignment of the quarter and was having a really rough time with Makefile. Your tutorial was way better than my teachers lol. Thanks!
hy bro thanks for the tutorial .I have a doubt . The main use of cmake comes when there is more files to compile,that is it is not possible to compile each file. Then why are you adding main.cpp ,function 1.cpp and function 2.cpp in makefile. What if we have 1000 files .we want to add each file in makeFile one by one?
@@Ireland_Lo_Sreemathi_Garu finally i understood that when we create a make file containing many cpp files say around 100cpp files , if you modify any one cpp file it wont again compile 100cpp files , instead it compiles only one file ,thats the main use of cmake.
Thank you so much for this video! This video clearly explained everything step by step! It was simple and clear, which is super helpful for beginners like me. Even if I don't know all the complicated extras, I understand the main idea now.
Dude. Please prepare well before making a video, don't end up saying the same things again and again or confuse people which makes the viewers unpleasant in viewing it. By the way thanks for the video. It's very helpful.
much appreciated! Example extracted right from tutorials plus BUT made completely understandable where tutorials plus failed at this >=( . Very Swell job
awesome Sir , very well explained!! Thanks a lots , but Sir when I make changes in a main file , incremental build is not working , and every time I use "make clean" , why is this happening?
There is a very serious error in the last line of your Makefile:
rm -rf *o hello
The argument "*o" means every file whose name ends with "o", not just ".o". I.e. this command would also delete "hello", "foo" and anything like that.
As far as you only intend to delete the object files, the command should looks like this:
rm -rf *.o hello
But co-incidentally, the main target name, hello, also ends with "o",
so, just for ***this*** example directory,
rm -rf *o
is sufficient, for the removal job.
Anyway, the point is, you don't keep redundant files in your project dir.
He just missed a dot, chill out, its probably a typo
@shah ok but you were hostile towards him
Awesome! I knew almost nothing before about Makefiles, but after this video
I was able to understand what are the targets, what are the dependencies, when you need to use
tab and why, when to use space, and how to write clear and modular makefiles!
It explains things very very clearly.
Thank you man!
Thank you so much! I was having a real pain with makefiles but you made it so simple and well explained. Great job :)
When it's your first semester and you're studying everything to pass and came here for that
We have OOM in our first semester and I was not getting any idea of makefiles and now after watching this video I can even explain makefiles really well! This is super helpful!
Thank you. That is exactly what I needed to understand the topic. A lot of tutorials make it redundantly complicated, this one is very clear.
Very helpful!
you "make" me happy.
Thank you :)
+DonCorleoneQ8 dat pun gave me cancer
lmao
Stop "making" programmers look bad.
Hoochie Goochie y don't you Make like a Tree and Git outta here
me too .. you make me happy :D
very useful and intuitive tutorial on makefiles.
Nice explanation with simple example...
7 years old and is still GOLD
Thanks, great tutorial. Makefiles were pretty confusing. But, now that I've watched you build one, I have a much better understanding of their functionality. Thank you. Loved the video. Favorited your website, as well.
simple and crisp to the point video
EXCELLENT VIDEO!!!
Dude... you wouldn't believe how high the barrier of entry is for a layman just trying to use stuff off github...
Just wanted to drop a comment saying that this video really helped me. Last assignment of the quarter and was having a really rough time with Makefile. Your tutorial was way better than my teachers lol. Thanks!
This is the best tutorial I've found on Makefiles! Very clear and succinct. Thanks for making this video!
Very complete and informative about "make",
in such a short-video format like this one.
Explained in very simple terms. Very good video for a beginner. Thanks for your efforts.
Thanku very much for your support. You explained everything so well and in simple way. Hats Off to you man❤️
FINALLY! the video I've been looking for to explain makefiles and the process of creating them. Thank you so much!
Great explanation! I finally understand the basic concept of Makefiles. Thank you very much
Thank you, sir. It is really helpful. Please do some more videos on Makefile.
Thank you very much...best video on Makefile.
Thanks . Make file is explained very nicely.
Great Video!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Nice one for beginners
This really helped me out. My CS course requires us to use Makefiles for compiling and I'm used to using an IDE.
Thank you very much :) I love India :)
It's is very very very very very Good Video,
It's Very useful.
Thank You.
Excellent explanation ......
Really this tutorial is very helpful for beginners.....thx lot
Coding ka asli badshah ❗️‼️ 👍💯
Thanks! Makefiles have always looked incredibly cryptic to me, but this helps.
Patient author. Just what I want to start with. Thanks a lot for making this Video :)
Love you bro. You have saved me twice twice wwith this video with 4 months gap in between
Thank you very much. It helps me a lot!
Simple and very helpful
Thanks for the tutorial!!!!
Very clear explanation, thank you
Very good explanation. Thanks!
Very nice video.
Very good explained
as simple and nice explanation as they can come.. good work man
to the point and full of useful info. Great for starters...Thanks for the video :)
Good Video...Thanks for the information in such simple words...
truely deserved like.....!!!
Very helpful to understand makefile and create our own one.
Thanks a lot..!!
Mersi sinyó es mereix un like!!
Excellent explanation! I have been finding easy-to-understand tutorial and this is the one!
For basics this is useful.
very helpful tutorial ,thanx
very good explanation
nice presentataion
very very helpful. thank you so much plz upload some advance cvedio
awesome, thank you for this. Its the only good make file tutorial ive seen and been able to understand!
hy bro thanks for the tutorial .I have a doubt . The main use of cmake comes when there is more files to compile,that is it is not possible to compile each file. Then why are you adding main.cpp ,function 1.cpp and function 2.cpp in makefile. What if we have 1000 files .we want to add each file in makeFile one by one?
same doubt to me also
@@Ireland_Lo_Sreemathi_Garu finally i understood that when we create a make file containing many cpp files say around 100cpp files , if you modify any one cpp file it wont again compile 100cpp files , instead it compiles only one file ,thats the main use of cmake.
nice introduction
Brilliant ideas, thank you, you helped me a lot
Awesome
thanks for awesome explanation
Thanks man you're a saviour
Very easy to follow! Thanks so much!
Thank you so much. That was excellent.
Good work thanks
Thank you so much for this video! This video clearly explained everything step by step! It was simple and clear, which is super helpful for beginners like me. Even if I don't know all the complicated extras, I understand the main idea now.
Good explanation, thank you
nicely explained
Nice work! Told me the basics that I needed to know.
This is EXACTLY what I needed. Thank you.
Very helpful ... thanks!!
Good explanation. Thank you :)
very helpful. Thank you.
Wonderful simple and best... -_-
Nice
You just save my life!!
Dude. Please prepare well before making a video, don't end up saying the same things again and again or confuse people which makes the viewers unpleasant in viewing it. By the way thanks for the video. It's very helpful.
much appreciated! Example extracted right from tutorials plus BUT made completely understandable where tutorials plus failed at this >=( . Very Swell job
Great vid
Helpful tutorial.
thank you dude !
really great explanation in short time :)
your explanation was fabulous :) !!
Great introduction! Thank you so much!
Thanks bro! Solid basics. keep it up!
Good work, amazing tutorial.
Very useful and in detail video
Thanks :)
Thank you !!! Very clear and helpful
this video saved my life
Thanks for this presentation.
thanks. Its help me a lot.
very usefull.
Great video! Clear and concise. keep the good work thanks!!
Thank you very much. This makes me appproach my dream career.
Thank you my friend. This was just what I wanted to understand makefiles
dude this is so freaking clean, keep on good work
awesome Sir , very well explained!! Thanks a lots , but Sir when I make changes in a main file , incremental build is not working , and every time I use
"make clean" , why is this happening?
Great job thank you
Thanks very much..
understood very well
It was very helpful to get started ! Thanks ! :)
nice video :) helped me a lot
Thanks Sir
Great tutorial
thank you it's really useful
Great video!