diff options
author | Keith Packard <keithp@keithp.com> | 2012-07-09 16:29:04 -0700 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2012-08-01 17:55:06 -0700 |
commit | 5c6c4fc0820b4f7845ec43a1b784fa566713e566 (patch) | |
tree | 26ba3a871bdf43600373786e14f825644034ce32 | |
parent | 4060ebfea066693f9d9dd5fab63278ebd4951533 (diff) |
Add 'install-headers' target in the top-level Makefile
This target recursively locates directories with sdk headers and
installs them all. Useful when you want to build a complete new X
server and drivers without having to install the X server before the
drivers are actually working.
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit d1c639c006526b8cab14dac582508f3f54848967)
-rw-r--r-- | Makefile.am | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index cea140bea..9a628537d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -95,3 +95,10 @@ DIST_SUBDIRS = \ # gross hack relink: all $(AM_V_at)$(MAKE) -C hw relink + +install-headers: Makefile + +find . -name Makefile | while read m; do \ + if grep -q install-sdkHEADERS $$m; then \ + (cd `dirname "$$m"` && make install-sdkHEADERS) \ + fi \ + done |