Using make and writing Makefile ( in C++ or C )

Поділитися
Вставка
  • Опубліковано 18 вер 2024

КОМЕНТАРІ • 289

  • @xyz9621
    @xyz9621 4 роки тому +141

    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

    • @abcxyz-nd6xh
      @abcxyz-nd6xh 4 роки тому +1

      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.

    • @ahbarahad3203
      @ahbarahad3203 3 роки тому +6

      He just missed a dot, chill out, its probably a typo

    • @Avighna
      @Avighna 2 роки тому

      @shah ok but you were hostile towards him

  • @andreashadjigeorgiou1596
    @andreashadjigeorgiou1596 4 роки тому +4

    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!

  • @gregorysaldanha5360
    @gregorysaldanha5360 8 років тому +23

    Thank you so much! I was having a real pain with makefiles but you made it so simple and well explained. Great job :)

  • @69k_gold
    @69k_gold 3 роки тому +18

    When it's your first semester and you're studying everything to pass and came here for that

  • @tiyabansal7267
    @tiyabansal7267 3 роки тому

    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!

  • @grigorizaika8541
    @grigorizaika8541 8 років тому +13

    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.

  • @DonCorleoneQ8
    @DonCorleoneQ8 9 років тому +164

    Very helpful!
    you "make" me happy.
    Thank you :)

    • @Reaper7mk
      @Reaper7mk 8 років тому +26

      +DonCorleoneQ8 dat pun gave me cancer

    • @dayone1992
      @dayone1992 7 років тому

      lmao

    • @Nobodyyoucarabout
      @Nobodyyoucarabout 7 років тому +6

      Stop "making" programmers look bad.

    • @ed.peguillan.3
      @ed.peguillan.3 7 років тому +1

      Hoochie Goochie y don't you Make like a Tree and Git outta here

    • @mohamedraafat7479
      @mohamedraafat7479 6 років тому +2

      me too .. you make me happy :D

  • @Jumbo_chimre
    @Jumbo_chimre 3 роки тому

    very useful and intuitive tutorial on makefiles.

  • @rajukumarsah6062
    @rajukumarsah6062 4 роки тому

    Nice explanation with simple example...

  • @shrn
    @shrn 3 роки тому +1

    7 years old and is still GOLD

  • @TropicalPriest
    @TropicalPriest 7 років тому +1

    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.

  • @FaadooStocks
    @FaadooStocks 3 роки тому

    simple and crisp to the point video

  • @brandoncrenshaw6813
    @brandoncrenshaw6813 4 роки тому

    EXCELLENT VIDEO!!!
    Dude... you wouldn't believe how high the barrier of entry is for a layman just trying to use stuff off github...

  • @Fl4m3S0ldi3r
    @Fl4m3S0ldi3r 6 років тому

    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!

  • @rachelf5466
    @rachelf5466 3 роки тому

    This is the best tutorial I've found on Makefiles! Very clear and succinct. Thanks for making this video!

  • @abcxyz-nd6xh
    @abcxyz-nd6xh 4 роки тому

    Very complete and informative about "make",
    in such a short-video format like this one.

  • @sravanthreddy688
    @sravanthreddy688 5 років тому

    Explained in very simple terms. Very good video for a beginner. Thanks for your efforts.

  • @manushrivastava2224
    @manushrivastava2224 Рік тому

    Thanku very much for your support. You explained everything so well and in simple way. Hats Off to you man❤️

  • @volo7
    @volo7 7 років тому

    FINALLY! the video I've been looking for to explain makefiles and the process of creating them. Thank you so much!

  • @codewithnacho
    @codewithnacho 8 років тому +2

    Great explanation! I finally understand the basic concept of Makefiles. Thank you very much

  • @ManzoorHussain-gz1vk
    @ManzoorHussain-gz1vk 3 роки тому

    Thank you, sir. It is really helpful. Please do some more videos on Makefile.

  • @anupriyasharma7672
    @anupriyasharma7672 3 роки тому

    Thank you very much...best video on Makefile.

  • @abulkasimlaskar
    @abulkasimlaskar 7 років тому

    Thanks . Make file is explained very nicely.

  • @sampathelvitigala7011
    @sampathelvitigala7011 9 років тому

    Great Video!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @NarendraKumarAchari
    @NarendraKumarAchari 9 років тому

    Nice one for beginners

  • @theglasspinataincident7405
    @theglasspinataincident7405 9 років тому

    This really helped me out. My CS course requires us to use Makefiles for compiling and I'm used to using an IDE.

  • @magentaRE
    @magentaRE 5 років тому +3

    Thank you very much :) I love India :)

  • @mohitsolanki5505
    @mohitsolanki5505 5 років тому

    It's is very very very very very Good Video,
    It's Very useful.
    Thank You.

  • @umairkiyani05
    @umairkiyani05 8 років тому

    Excellent explanation ......

  • @ponnuvel659
    @ponnuvel659 7 років тому

    Really this tutorial is very helpful for beginners.....thx lot

  • @SMOKEY428
    @SMOKEY428 7 років тому

    Coding ka asli badshah ❗️‼️ 👍💯

  • @BylerTerryhill
    @BylerTerryhill 8 років тому

    Thanks! Makefiles have always looked incredibly cryptic to me, but this helps.

  • @PawanKumarYouTube
    @PawanKumarYouTube 8 років тому +1

    Patient author. Just what I want to start with. Thanks a lot for making this Video :)

  • @paradoxnafi
    @paradoxnafi 6 років тому

    Love you bro. You have saved me twice twice wwith this video with 4 months gap in between

  • @Sip4874
    @Sip4874 4 роки тому +1

    Thank you very much. It helps me a lot!

  • @comvisblog4825
    @comvisblog4825 5 років тому

    Simple and very helpful

  • @mohnish.deshpande
    @mohnish.deshpande 2 роки тому

    Thanks for the tutorial!!!!

  • @rajaneeshdonthi4622
    @rajaneeshdonthi4622 5 років тому

    Very clear explanation, thank you

  • @LePeppino
    @LePeppino 4 роки тому

    Very good explanation. Thanks!

  • @Raghudegaucho
    @Raghudegaucho 7 років тому

    Very nice video.

  • @taralshahshah
    @taralshahshah 8 років тому

    Very good explained

  • @shreyansborad9977
    @shreyansborad9977 5 років тому

    as simple and nice explanation as they can come.. good work man

  • @yuganderkrishansingh3733
    @yuganderkrishansingh3733 4 роки тому

    to the point and full of useful info. Great for starters...Thanks for the video :)

  • @NikhilSharma-kn3yq
    @NikhilSharma-kn3yq 10 років тому

    Good Video...Thanks for the information in such simple words...
    truely deserved like.....!!!

  • @vikasnavgire6295
    @vikasnavgire6295 8 років тому

    Very helpful to understand makefile and create our own one.
    Thanks a lot..!!

  • @saraserrano9553
    @saraserrano9553 7 років тому

    Mersi sinyó es mereix un like!!

  • @TheEntlassen
    @TheEntlassen 8 років тому

    Excellent explanation! I have been finding easy-to-understand tutorial and this is the one!

  • @aravindgooogle8431
    @aravindgooogle8431 5 років тому

    For basics this is useful.

  • @sharadpandey7834
    @sharadpandey7834 8 років тому

    very helpful tutorial ,thanx

  • @balaramprajapati8870
    @balaramprajapati8870 2 роки тому

    very good explanation

  • @sdram111
    @sdram111 10 років тому

    nice presentataion

  • @gauravverma4660
    @gauravverma4660 9 років тому

    very very helpful. thank you so much plz upload some advance cvedio

  • @TwickenStep
    @TwickenStep 7 років тому

    awesome, thank you for this. Its the only good make file tutorial ive seen and been able to understand!

  • @ohmnamo7056
    @ohmnamo7056 4 роки тому +1

    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
      @Ireland_Lo_Sreemathi_Garu 4 роки тому

      same doubt to me also

    • @ohmnamo7056
      @ohmnamo7056 4 роки тому

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

  • @saketseshadri7515
    @saketseshadri7515 4 роки тому

    nice introduction

  • @fordtom9489
    @fordtom9489 3 роки тому

    Brilliant ideas, thank you, you helped me a lot

  • @shohidurrahman6549
    @shohidurrahman6549 9 років тому

    Awesome

  • @mohamedaboelnasr6674
    @mohamedaboelnasr6674 2 роки тому

    thanks for awesome explanation

  • @velankar
    @velankar 4 роки тому

    Thanks man you're a saviour

  • @MrGameengineer
    @MrGameengineer 8 років тому

    Very easy to follow! Thanks so much!

  • @hamedelahi2249
    @hamedelahi2249 2 роки тому

    Thank you so much. That was excellent.

  • @SupreetSinghsuppi
    @SupreetSinghsuppi 4 роки тому

    Good work thanks

  • @bananapudding4854
    @bananapudding4854 6 років тому

    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.

  • @RamananRajaraman
    @RamananRajaraman Рік тому

    Good explanation, thank you

  • @ArpitaKhanShonaa
    @ArpitaKhanShonaa 3 роки тому

    nicely explained

  • @austimbo
    @austimbo 8 років тому +1

    Nice work! Told me the basics that I needed to know.

  • @trashcan3958
    @trashcan3958 6 років тому

    This is EXACTLY what I needed. Thank you.

  • @ankushkala1675
    @ankushkala1675 8 років тому

    Very helpful ... thanks!!

  • @katnesuresh44
    @katnesuresh44 4 роки тому

    Good explanation. Thank you :)

  • @seangleason7298
    @seangleason7298 4 роки тому

    very helpful. Thank you.

  • @akashr4940
    @akashr4940 7 років тому

    Wonderful simple and best... -_-

  • @kannand9073
    @kannand9073 8 років тому

    Nice

  • @swk9015
    @swk9015 4 роки тому

    You just save my life!!

  • @manikanta8782
    @manikanta8782 7 років тому

    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.

  • @colinrickels201
    @colinrickels201 9 років тому

    much appreciated! Example extracted right from tutorials plus BUT made completely understandable where tutorials plus failed at this >=( . Very Swell job

  • @ruthnoel7490
    @ruthnoel7490 6 років тому

    Great vid

  • @vivekpanchal8270
    @vivekpanchal8270 6 років тому

    Helpful tutorial.

  • @SureshYerrarapu
    @SureshYerrarapu 10 років тому +1

    thank you dude !
    really great explanation in short time :)

  • @arunkumarneelam5875
    @arunkumarneelam5875 5 років тому

    your explanation was fabulous :) !!

  • @aminmansouri363
    @aminmansouri363 5 років тому

    Great introduction! Thank you so much!

  • @bialcus69
    @bialcus69 8 років тому +1

    Thanks bro! Solid basics. keep it up!

  • @jyotirmayaojha6516
    @jyotirmayaojha6516 6 років тому

    Good work, amazing tutorial.

  • @limitless1692
    @limitless1692 5 років тому

    Very useful and in detail video
    Thanks :)

  • @johnnytan9438
    @johnnytan9438 5 років тому

    Thank you !!! Very clear and helpful

  • @EstebanQuijada
    @EstebanQuijada 9 років тому

    this video saved my life

  • @krakwal
    @krakwal 10 років тому

    Thanks for this presentation.

  • @murilozangari
    @murilozangari 9 років тому

    thanks. Its help me a lot.

  • @TheZarkoc
    @TheZarkoc 9 років тому

    very usefull.

  • @hanshernandez5513
    @hanshernandez5513 6 років тому

    Great video! Clear and concise. keep the good work thanks!!

  • @KananDethin
    @KananDethin 8 років тому

    Thank you very much. This makes me appproach my dream career.

  • @VTGGT
    @VTGGT 6 років тому

    Thank you my friend. This was just what I wanted to understand makefiles

  • @xinfap.5968
    @xinfap.5968 5 років тому

    dude this is so freaking clean, keep on good work

  • @harshitha3867
    @harshitha3867 3 роки тому

    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?

  • @ashwinidj9849
    @ashwinidj9849 2 роки тому

    Great job thank you

  • @kksaisubramanyam3619
    @kksaisubramanyam3619 8 років тому

    Thanks very much..
    understood very well

  • @TusharJoshi591
    @TusharJoshi591 9 років тому

    It was very helpful to get started ! Thanks ! :)

  • @karangoel16
    @karangoel16 8 років тому

    nice video :) helped me a lot

  • @tukaramgaikwad1793
    @tukaramgaikwad1793 7 років тому

    Thanks Sir
    Great tutorial

  • @leenalzebn6176
    @leenalzebn6176 9 років тому

    thank you it's really useful

  • @2fast4uspartan
    @2fast4uspartan 10 років тому

    Great video!