From the course: Rust LLMOps

Unlock this course with a free trial

Join today to access over 23,100 courses taught by industry experts.

What is a Makefile and how do you use it?

What is a Makefile and how do you use it? - Rust Tutorial

From the course: Rust LLMOps

What is a Makefile and how do you use it?

- [Instructor] Let's talk through what it's like to create a Makefile, what it's used for, and how to run some commands. So first, if you type in the word which make in a terminal, in this case I have a terminal open in Visual Studio Code. You can see that it's installed on my machine in the usr/bin/make directory. What's nice about the make command is that it's installed on most Unix-type machines. So OS 10, Linux, all of them that have this Unix underpinning have the make command either installed or it's really easy to install it and you can use this to set up build steps in your project. So, what we'll do next is use a command called touch to make an empty file called Makefile. Notice that the Makefile itself has to be called a very specific name and the uppercase M is important. So, we go ahead and do that and now, see that the Makefile is now in my location in the Git repository that I've checked out. If I hover over it, I can select it. And now, what's great about this editing…

Contents