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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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