build: Add common-rules.mk, common rules for all Makefiles.

This file is mainly a central place to:

 - include localenv if it exists, and

 - define the RHEL 5 backwards compatibility macros, instead of
   spreading them over every other file.
This commit is contained in:
Richard W.M. Jones
2013-06-04 11:52:18 +01:00
parent 76321709d6
commit 49bdaabc7d
30 changed files with 58 additions and 75 deletions

View File

@@ -15,6 +15,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
# subdir-rules.mk should be included in every *subdirectory* Makefile.am.
include $(top_srcdir)/common-rules.mk
# Individual Makefile.am's should define generator_built if that
# subdirectory contains any files which are built by the generator.
# Set generator_built to the list of those files.