Remove custom install-data-local for headers

Rather than use a custom install target it is cleaner to define
a 'kerneldir' and set 'kernel_HEADERS' appropriately.  This
allows us to leverage the standing configure install support.

Additionally, I took this opertunity add the missing make files
to the include subdirectories.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
Brian Behlendorf
2013-02-13 14:01:00 -08:00
parent 0298f3d67f
commit d1142fbffe
13 changed files with 278 additions and 28 deletions
+15
View File
@@ -0,0 +1,15 @@
COMMON_H =
KERNEL_H = \
$(top_srcdir)/include/vm/anon.h \
$(top_srcdir)/include/vm/pvn.h \
$(top_srcdir)/include/vm/seg_kmem.h
USER_H =
EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
if CONFIG_KERNEL
kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/vm
kernel_HEADERS = $(KERNEL_H)
endif