This describes conventions for writing the Makefiles for GNU programs. Using Automake will help you write a Makefile that follows these conventions. For more information on portable Makefiles, see POSIX and Portable Make Programming in Autoconf.
• Makefile Basics | General conventions for Makefiles. | |
• Utilities in Makefiles | Utilities to be used in Makefiles. | |
• Command Variables | Variables for specifying commands. | |
• DESTDIR | Supporting staged installs. | |
• Directory Variables | Variables for installation directories. | |
• Standard Targets | Standard targets for users. | |
• Install Command Categories | Three categories of commands in the ‘install’ rule: normal, pre-install and post-install. |
Copyright © 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020 Free Software Foundation, Inc.
Licensed under the GNU Free Documentation License.
https://www.gnu.org/software/make/manual/html_node/Makefile-Conventions.html