Makefiles Make Your Life Easier

  Рет қаралды 81,091

NeuralNine

NeuralNine

Жыл бұрын

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

Пікірлер: 83
@insert9124
@insert9124 Жыл бұрын
Neuralnine casually creating a c files in a python director
@_ja.kubix.shorts
@_ja.kubix.shorts Жыл бұрын
Br
@_ja.kubix.shorts
@_ja.kubix.shorts Жыл бұрын
Yo
@_ja.kubix.shorts
@_ja.kubix.shorts Жыл бұрын
Ar
@_ja.kubix.shorts
@_ja.kubix.shorts Жыл бұрын
So goo
@potatocoder5090
@potatocoder5090 6 ай бұрын
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!
@eumm11
@eumm11 Жыл бұрын
thank you so much man, excellent explanation!
@bijeshmohan
@bijeshmohan Жыл бұрын
I was looking for this! Thanks.
@FroyoAnto
@FroyoAnto 8 ай бұрын
this whole time I was writing my own batch file for this, never knew this existed 💀
@rishichowdary9764
@rishichowdary9764 7 ай бұрын
got the clear understanding , GOTCHA thanks by the way Well done , CHAP
@LazizbekYusupov92
@LazizbekYusupov92 8 ай бұрын
Awesome work! It made clear it all in one video!
@idrisalhajiadamu7590
@idrisalhajiadamu7590 9 ай бұрын
I learn something and have hit the like button, thank you very much.😎
@vonderklaas
@vonderklaas 7 ай бұрын
Thanks man, very helpful! Subscribed!
@jeffreyhunter4115
@jeffreyhunter4115 5 ай бұрын
Very well explained. Thanks for sharing.
@Universe822
@Universe822 Ай бұрын
Thank you. I used to do huge commands in the terminal but it's high time I use make.
@BlackCat-gh8fr
@BlackCat-gh8fr Жыл бұрын
Thanks, simple and helpful.
@ConcealedSteel2
@ConcealedSteel2 26 күн бұрын
Excellent tutorial!
@adetolasanni2
@adetolasanni2 Жыл бұрын
Thanks man. Clear enough
@ZeroCool2211
@ZeroCool2211 3 ай бұрын
Thank u for uploading this
@emilie1977
@emilie1977 Жыл бұрын
thank you! I have 3 books on C but no one has told me how to make a Makefile
@caiodavi9829
@caiodavi9829 9 ай бұрын
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
@ZuhairKhouri2003
@ZuhairKhouri2003 7 ай бұрын
Excellent video!🙏
@IshanSathe-rm9uk
@IshanSathe-rm9uk Ай бұрын
Thanks! That helped a lot :).
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@tiagobecerrapaolini3812 But it’s not something you would want to do every time.
@goofyahhhhman
@goofyahhhhman 9 ай бұрын
@@lawrencedoliveiro9104no the point is to simplify the process and write less commands
@lawrencedoliveiro9104
@lawrencedoliveiro9104 9 ай бұрын
@@goofyahhhhman The point of “make” is to follow the dependency chain and only rebuild what needs to be rebuilt.
@goofyahhhhman
@goofyahhhhman 9 ай бұрын
@@lawrencedoliveiro9104 what the first reply says
@dinispetrukha4382
@dinispetrukha4382 7 ай бұрын
Awesome Job!
@kirito6374
@kirito6374 7 ай бұрын
Very Informative!
@ruslanart8734
@ruslanart8734 16 күн бұрын
I finally managed to link libraries because of this tutorial. I can now commit to learning c.
@NickFletcher-gb9ne
@NickFletcher-gb9ne Ай бұрын
Great thank you very much.
@nimishanaruka4767
@nimishanaruka4767 5 ай бұрын
Great help!!
@md2perpe
@md2perpe Жыл бұрын
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 9 ай бұрын
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 8 ай бұрын
Downside / Consequence of using WSL?
@Anonymous-lw1zy
@Anonymous-lw1zy 4 ай бұрын
Superb!
@vishnubalaji9500
@vishnubalaji9500 7 ай бұрын
does it work on windows too or any equivalent?
@Orangehat000
@Orangehat000 2 ай бұрын
thank you so much
@Jonathan-ru9zl
@Jonathan-ru9zl 9 ай бұрын
Great!
@claudestephaneadriendjanti4227
@claudestephaneadriendjanti4227 3 ай бұрын
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
@iamraghug
@iamraghug 2 ай бұрын
Thanks
@mohamedabotayeh4115
@mohamedabotayeh4115 4 ай бұрын
guys why it says nv is not found for me?
@shadowrealm8937
@shadowrealm8937 7 ай бұрын
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 4 ай бұрын
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.
@johnnwick733
@johnnwick733 5 ай бұрын
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 4 ай бұрын
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.
@teddycallejero
@teddycallejero 8 ай бұрын
Thx
@thg1nrediar
@thg1nrediar Жыл бұрын
Good
@sakithb
@sakithb 4 ай бұрын
@guilherme5094
@guilherme5094 Жыл бұрын
👍
@lsouza1327
@lsouza1327 Жыл бұрын
you could get zsh shell and use a prompt with break line
@xntumrfo9ivrnwf
@xntumrfo9ivrnwf Жыл бұрын
What ide are you using? With the nv command
@hilmankholik7354
@hilmankholik7354 Жыл бұрын
maybe alias dude
@zjardynliera-hood5609
@zjardynliera-hood5609 Жыл бұрын
Neovim?
@xycho6380
@xycho6380 Жыл бұрын
Its neovim
@xntumrfo9ivrnwf
@xntumrfo9ivrnwf Жыл бұрын
@@zjardynliera-hood5609 thanks. sounds like a pokemon or something
@pouriapmd6077
@pouriapmd6077 Жыл бұрын
Neovim
@TMNIARB3A
@TMNIARB3A 7 ай бұрын
RAK GHAYA
@JohnZakaria
@JohnZakaria Жыл бұрын
I hate makefiles, cmake is much better at generating them (or even using Ninja).
@lawrencedoliveiro9104
@lawrencedoliveiro9104 Жыл бұрын
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.
@philtoa334
@philtoa334 Жыл бұрын
Thx_.
@relytheone853
@relytheone853 7 ай бұрын
And you haven't scratch the surface...
@bapisarkar4124
@bapisarkar4124 9 ай бұрын
I need to talk you something important can I,, Have a think for something if you don't mind
@Zancb
@Zancb Жыл бұрын
Jesus christ, change your PS1. That's way too long bro.
@RockTo11
@RockTo11 8 ай бұрын
That can be easily achieved using a batch file too.
@AbAb-th5qe
@AbAb-th5qe 4 ай бұрын
They have more power than that for incremental builds. Makefiles are s**t, but at least they're simple
@SeriousGamer42
@SeriousGamer42 8 ай бұрын
No it fucking don’t. I wrote 1 make file and almost kms several times.
@igormicovic
@igormicovic Ай бұрын
Tbh to me it seems you got no clue what ya doin
@kingnexa7257
@kingnexa7257 Жыл бұрын
Thanks
Makefiles in Python For Professional Automation
13:43
NeuralNine
Рет қаралды 38 М.
why do header files even exist?
10:53
Low Level Learning
Рет қаралды 350 М.
Be kind🤝
00:22
ISSEI / いっせい
Рет қаралды 19 МЛН
WHY DOES SHE HAVE A REWARD? #youtubecreatorawards
00:41
Levsob
Рет қаралды 35 МЛН
ПЕЙ МОЛОКО КАК ФОКУСНИК
00:37
Masomka
Рет қаралды 10 МЛН
ДЕНЬ РОЖДЕНИЯ БАБУШКИ #shorts
00:19
Паша Осадчий
Рет қаралды 4,8 МЛН
Makefiles: 95% of what you need to know
1:01:53
Gabriel Parmer
Рет қаралды 109 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 273 М.
you need to stop using print debugging (do THIS instead)
7:07
Low Level Learning
Рет қаралды 402 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 246 М.
C Programming: Makefiles
44:21
Barry Brown
Рет қаралды 255 М.
Modern Graphical User Interfaces in Python
11:12
NeuralNine
Рет қаралды 1,4 МЛН
Python Vs C++ Vs Java!
4:41
ByteByteGo
Рет қаралды 435 М.
everything is open source if you can reverse engineer (try it RIGHT NOW!)
13:56
Low Level Learning
Рет қаралды 1,2 МЛН
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 2,5 МЛН
Не обзор DJI Osmo Pocket 3 Creator Combo
1:00
superfirsthero
Рет қаралды 618 М.
📱 SAMSUNG, ЧТО С ЛИЦОМ? 🤡
0:46
Яблочный Маньяк
Рет қаралды 1,7 МЛН
МОЖНО ЛИ заряжать AirPods в чехле 🧐😱🧐 #airpods #applewatch #dyson
0:22
Apple_calls РЕПЛИКА №1 В РФ
Рет қаралды 21 М.
Latest Nokia Mobile Phone
0:42
Tech Official
Рет қаралды 491 М.
Which Phone Unlock Code Will You Choose? 🤔️
0:14
Game9bit
Рет қаралды 12 МЛН
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11