Source:

Jacob Sorber

Learn make in 60 seconds.

More make: automatic variables for smaller and easier to maintain makefiles

GNU make manual

GNU make

Basics of Make

hello: hello.c
	gcc -o hello hello.c

Automatic variable

Check the link for more: