makefile - How does "make" app know default target to build if no target is specified? -


most linux apps compiled with:

make make install clean 

as understood it, make takes names of build targets arguments. install target copies files , after clean target removes temporary files.

but target make build if no arguments specified (e.g. first command in example)?

by default, begins processing first target not begin '.' aka the default goal; that, may have process other targets - specifically, ones first target depends on. gnu make manual covers stuff, , surprisingly easy , informative read.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -