channel on Youtube : https://www.youtube.com/channel/UCHTjN5FEITwRyb4IA3F8c4Q/playlists
- Make is a scripting tool is used for building executable according to commands
- Make tool parse an input file " Makefile" to define rules that it will run
- two types of Make ( GNU Make - Borland Make)
- to organize the compilation process
- to run our tools and scripts
- to automate the process
- to be fully control on the outputs and its time
- setting rule
Target : prerequisites
<tab> Recipe
- Define Variable
files = main.cpp
files += hello.cpp
- substitute variable
echo $(files)
-
Disaple Echo
Using @ ex :
@echo "hello"
-
Access Enviroment Variable
it is accessible ex :
echo $(PATH)
-
Access shell commands
example
clean:
@rm *.o
@echo "`date` done" > log.txt
-
Access external scripts
example
test:
python analysis.py