Тёмный
No video :(

Makefiles Make Your Life Easier 

NeuralNine
Подписаться 364 тыс.
Просмотров 95 тыс.
50% 1

In this video, we learn why Makefiles are great and how to use them properly.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine...
💻 The Algorithm Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 88   
@insert9124
@insert9124 2 года назад
Neuralnine casually creating a c files in a python director
@_ja.kubix.shorts
@_ja.kubix.shorts 2 года назад
Br
@_ja.kubix.shorts
@_ja.kubix.shorts 2 года назад
Yo
@_ja.kubix.shorts
@_ja.kubix.shorts 2 года назад
Ar
@_ja.kubix.shorts
@_ja.kubix.shorts 2 года назад
So goo
@yimingchen9509
@yimingchen9509 Месяц назад
Top
@omaralraisi1143
@omaralraisi1143 2 месяца назад
It's also worth mentioning that the power of make comes from that it tracks file changes, where if you run make all and then modify only one source file, when you run make all the second time, only that single file gets recompiled and not all files, and if nothing changed it wouldn't recompile again
@potatocoder5090
@potatocoder5090 9 месяцев назад
Thank you for creating this tutorial! Because you explained what the manual way looks like and its pitfalls, it helped me appreciate Makefiles. You are a great teacher!
@FroyoAnto
@FroyoAnto 11 месяцев назад
this whole time I was writing my own batch file for this, never knew this existed 💀
@eumm11
@eumm11 Год назад
thank you so much man, excellent explanation!
@rishichowdary9764
@rishichowdary9764 10 месяцев назад
got the clear understanding , GOTCHA thanks by the way Well done , CHAP
@Mr_W_a_N
@Mr_W_a_N 11 часов назад
the intro is staring at my soul
@emilie1977
@emilie1977 2 года назад
thank you! I have 3 books on C but no one has told me how to make a Makefile
@caiodavi9829
@caiodavi9829 11 месяцев назад
thats because makefile has nothing to do with C. its just a software thar allows you to use logic while executing CLI commands. of course, you can use it to compile C projects too
@idrisalhajiadamu7590
@idrisalhajiadamu7590 Год назад
I learn something and have hit the like button, thank you very much.😎
@bijeshmohan
@bijeshmohan 2 года назад
I was looking for this! Thanks.
@Universe822
@Universe822 4 месяца назад
Thank you. I used to do huge commands in the terminal but it's high time I use make.
@raunakwete4881
@raunakwete4881 2 месяца назад
We can also write a build shell script to compile small projects.
@LazizbekYusupov92
@LazizbekYusupov92 11 месяцев назад
Awesome work! It made clear it all in one video!
@ruslanart8734
@ruslanart8734 3 месяца назад
I finally managed to link libraries because of this tutorial. I can now commit to learning c.
@vonderklaas
@vonderklaas 10 месяцев назад
Thanks man, very helpful! Subscribed!
@md2perpe
@md2perpe 2 года назад
Doesn't it disturb you having a prompt that takes up more that 2/3 of the screen width? I have shortened my prompt and added line breaks into it so that the information (like host and directory) is on one line and the actual prompt is alone on another line.
@IonizedComa
@IonizedComa Год назад
Long prompts are not bad if you're using a 2 line prompt, which for bash can easily be fixed with oh my bash
@dapodix
@dapodix 11 месяцев назад
Downside / Consequence of using WSL?
@jeffreyhunter4115
@jeffreyhunter4115 8 месяцев назад
Very well explained. Thanks for sharing.
@claudestephaneadriendjanti4227
@claudestephaneadriendjanti4227 6 месяцев назад
i dont realy understand how you manage to displaye the content of the function(hello world) minewhile this function is not part of the defferen functioncreated using flags and from what i see they are not diretly connected
@shadowrealm8937
@shadowrealm8937 10 месяцев назад
What is the point to do -c first and then compile from object files? It will compile if you just put *.c files right? What is the point of this *.o file, it just seems like extra step for no reason.
@SteelFoundations
@SteelFoundations 7 месяцев назад
It is an extra step. The reason is because if you're working on a large project with thousands of files, recompiling every single file will take hours. By splitting the build into separate compiling and linking stages, you can skip the compiling stage for files that don't need to be recompiled.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
10:38 Why did you have to do “make clean”? A key point with make is that it only rebuilds the parts that have changed, yet you are forcing it to rebuild everything.
@tiagobecerrapaolini3812
@tiagobecerrapaolini3812 2 года назад
One reason is to rebuild the entire project from scratch, in case something got corrupted along the way or just to be safe when building the final executables. Or maybe just to free some space of build artifacts, once everything is finished.
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
@@tiagobecerrapaolini3812 But it’s not something you would want to do every time.
@CorneliusCorndogJr
@CorneliusCorndogJr Год назад
@@lawrencedoliveiro9104no the point is to simplify the process and write less commands
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Год назад
@@CorneliusCorndogJr The point of “make” is to follow the dependency chain and only rebuild what needs to be rebuilt.
@CorneliusCorndogJr
@CorneliusCorndogJr Год назад
@@lawrencedoliveiro9104 what the first reply says
@ZuhairKhouri2003
@ZuhairKhouri2003 10 месяцев назад
Excellent video!🙏
@ConcealedSteel2
@ConcealedSteel2 3 месяца назад
Excellent tutorial!
@BlackCat-gh8fr
@BlackCat-gh8fr Год назад
Thanks, simple and helpful.
@ZeroCool2211
@ZeroCool2211 6 месяцев назад
Thank u for uploading this
@IshanSathe-rm9uk
@IshanSathe-rm9uk 4 месяца назад
Thanks! That helped a lot :).
@adetolasanni007
@adetolasanni007 Год назад
Thanks man. Clear enough
@dinispetrukha4382
@dinispetrukha4382 10 месяцев назад
Awesome Job!
@kirito6374
@kirito6374 10 месяцев назад
Very Informative!
@nimishanaruka4767
@nimishanaruka4767 8 месяцев назад
Great help!!
@NickFletcher-gb9ne
@NickFletcher-gb9ne 4 месяца назад
Great thank you very much.
@johnnwick733
@johnnwick733 8 месяцев назад
Hey, we couldve just included the hello.c file in the main.c code and run gcc main.c. Why are we using makefiles then ?
@SteelFoundations
@SteelFoundations 7 месяцев назад
Including hello.c in main.c would create one huge .c file when compiling. That prevents you from splitting builds into separate compile and link stages, which greatly slows down builds when you're working on projects with thousands of files. The strength of makefiles is more than just running the gcc or compiler commands for you; makefiles also determine which files need to be compiled and which ones can be skipped.
@Anonymous-lw1zy
@Anonymous-lw1zy 7 месяцев назад
Superb!
@vishnubalaji9500
@vishnubalaji9500 10 месяцев назад
does it work on windows too or any equivalent?
@Orangehat000
@Orangehat000 5 месяцев назад
thank you so much
@iamraghug
@iamraghug 5 месяцев назад
Thanks
@Jonathan-ru9zl
@Jonathan-ru9zl Год назад
Great!
@JohnZakaria
@JohnZakaria 2 года назад
I hate makefiles, cmake is much better at generating them (or even using Ninja).
@lawrencedoliveiro9104
@lawrencedoliveiro9104 2 года назад
Ninja is an alternative to makefiles. Make originated at a time when it was expected you would write makefiles by hand. So Make (particularly GNU Make) includes a lot of features for expressing complex rules and expressions and things, to minimize the size of the makefiles you have to write. But nowadays, many if not most makefiles are generated by front-end processors like CMake or Meson or even GNU Autotools. So a lot of the advanced stuff in Make is not really necessary and just duplicates the functionality of those front-end processors. So we have Ninja, which is like a stripped-down reimagining of Make, which assumes that you will use such a front-end processor, rather than writing your Ninja files by hand.
@TMNIARB3A
@TMNIARB3A 10 месяцев назад
RAK GHAYA
@teddycallejero
@teddycallejero 11 месяцев назад
Thx
@mohamedabotayeh4115
@mohamedabotayeh4115 7 месяцев назад
guys why it says nv is not found for me?
@Algeriawindows69
@Algeriawindows69 Месяц назад
use touch
@xntumrfo9ivrnwf
@xntumrfo9ivrnwf 2 года назад
What ide are you using? With the nv command
@hilmankholik7354
@hilmankholik7354 2 года назад
maybe alias dude
@zjardynliera-hood5609
@zjardynliera-hood5609 2 года назад
Neovim?
@ManUpNow1
@ManUpNow1 2 года назад
Its neovim
@xntumrfo9ivrnwf
@xntumrfo9ivrnwf 2 года назад
@@zjardynliera-hood5609 thanks. sounds like a pokemon or something
@pouriapmd6077
@pouriapmd6077 2 года назад
Neovim
@Zancb
@Zancb Год назад
Jesus christ, change your PS1. That's way too long bro.
@lsouza1327
@lsouza1327 2 года назад
you could get zsh shell and use a prompt with break line
@thg1nrediar
@thg1nrediar 2 года назад
Good
@sakithb
@sakithb 7 месяцев назад
@relytheone853
@relytheone853 10 месяцев назад
And you haven't scratch the surface...
@RockTo11
@RockTo11 11 месяцев назад
That can be easily achieved using a batch file too.
@AbAb-th5qe
@AbAb-th5qe 7 месяцев назад
They have more power than that for incremental builds. Makefiles are s**t, but at least they're simple
@philtoa334
@philtoa334 2 года назад
Thx_.
@guilherme5094
@guilherme5094 2 года назад
👍
@bapisarkar4124
@bapisarkar4124 Год назад
I need to talk you something important can I,, Have a think for something if you don't mind
@SeriousGamer42
@SeriousGamer42 11 месяцев назад
No it fucking don’t. I wrote 1 make file and almost kms several times.
@igormicovic
@igormicovic 4 месяца назад
Tbh to me it seems you got no clue what ya doin
@kingnexa7257
@kingnexa7257 Год назад
Thanks
Далее
Makefiles in Python For Professional Automation
13:43
why do header files even exist?
10:53
Просмотров 396 тыс.
Compilers, How They Work, And Writing Them From Scratch
23:53
Makefiles: 95% of what you need to know
1:01:53
Просмотров 120 тыс.
2 Years Of Learning C | Prime Reacts
22:24
Просмотров 276 тыс.
My Brain after 569 Leetcode Problems
7:50
Просмотров 2,5 млн
5 Useful F-String Tricks In Python
10:02
Просмотров 299 тыс.