Skip to content

Commit d1c639c

Browse files
committed
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 <[email protected]>
1 parent 329db32 commit d1c639c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile.am

+7
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,10 @@ DIST_SUBDIRS = \
9595
# gross hack
9696
relink: all
9797
$(AM_V_at)$(MAKE) -C hw relink
98+
99+
install-headers: Makefile
100+
+find . -name Makefile | while read m; do \
101+
if grep -q install-sdkHEADERS $$m; then \
102+
(cd `dirname "$$m"` && make install-sdkHEADERS) \
103+
fi \
104+
done

0 commit comments

Comments
 (0)