Make uses topological sorting

TIL: Make does topological sorting of the target and its dependencies # Makefile d: a b c @echo 'd ' c: a b @echo -n 'c ' b: a @echo -n 'b ' a: @echo -n 'a ' $ make a b c d

May 26, 2022 · Fernando Costa Bertoldi

Make: don't print command-line with @

TIL: in a Makefile command, use @ as a prefix to avoid printing the command line as it is executed

May 26, 2022 · Fernando Costa Bertoldi

checkinstall: create a Linux package file (.deb, .rpm) from a Makefile

checkinstall tracks installation of local software, and produces a binary manageable with your package management software. Instead of sudo make install, you will use sudo checkinstall to install. This will automatically create a package files, which you can use to uninstall the files: sudo dpkg -r <packagename> https://help.ubuntu.com/community/CheckInstall

Fernando Costa Bertoldi