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

@@ -17,9 +17,6 @@
include $(top_srcdir)/subdir-rules.mk
# Old RHEL 5 autoconf doesn't have abs_srcdir.
abs_srcdir ?= $(shell cd $(top_srcdir)/php && pwd)
generator_built = \
extension/php_guestfs_php.h \
extension/guestfs_php.c