aboutsummaryrefslogtreecommitdiffstats
path: root/include/sharefs/Makefile.am
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2013-02-13 14:01:00 -0800
committerBrian Behlendorf <[email protected]>2013-03-01 16:55:06 -0800
commitd1142fbffe720cd5f82691d7a00816ce72f4e2b2 (patch)
treefc19d2bf74f9c11029e3b4222f333426913cccb3 /include/sharefs/Makefile.am
parent0298f3d67ff4971513ff848d640ca431a983de43 (diff)
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 <[email protected]>
Diffstat (limited to 'include/sharefs/Makefile.am')
-rw-r--r--include/sharefs/Makefile.am13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/sharefs/Makefile.am b/include/sharefs/Makefile.am
new file mode 100644
index 000000000..b343c75b7
--- /dev/null
+++ b/include/sharefs/Makefile.am
@@ -0,0 +1,13 @@
+COMMON_H =
+
+KERNEL_H = \
+ $(top_srcdir)/include/sharefs/share.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)/sharefs
+kernel_HEADERS = $(KERNEL_H)
+endif