]>
Commit | Line | Data |
---|---|---|
0c617c9a BB |
1 | # All headers are referenced by this top level Makefile.am are |
2 | # noinst_HEADERS because they are not installed in the usual include | |
3 | # location. We do not want to be using $includedir for this. | |
4 | # Installation is handled by the custom install-data-local rule. | |
a7958f7e BB |
5 | noinst_HEADERS = $(top_srcdir)/include/*.h |
6 | noinst_HEADERS += $(top_srcdir)/include/fs/*.h | |
7 | noinst_HEADERS += $(top_srcdir)/include/linux/*.h | |
8 | noinst_HEADERS += $(top_srcdir)/include/rpc/*.h | |
9 | noinst_HEADERS += $(top_srcdir)/include/sharefs/*.h | |
10 | noinst_HEADERS += $(top_srcdir)/include/sys/fm/*.h | |
11 | noinst_HEADERS += $(top_srcdir)/include/sys/fs/*.h | |
12 | noinst_HEADERS += $(top_srcdir)/include/sys/sysevent/*.h | |
13 | noinst_HEADERS += $(top_srcdir)/include/sys/*.h | |
14 | noinst_HEADERS += $(top_srcdir)/include/util/*.h | |
15 | noinst_HEADERS += $(top_srcdir)/include/vm/*.h | |
0c617c9a BB |
16 | |
17 | install-data-local: | |
a2eda2ff BB |
18 | release=$(SPL_META_VERSION)-$(SPL_META_RELEASE); \ |
19 | instdest=$(DESTDIR)/usr/src/spl-$$release/$(LINUX_VERSION); \ | |
0c617c9a BB |
20 | instfiles=`find . -name '*.h'`; \ |
21 | for instfile in $$instfiles; do \ | |
fea77534 | 22 | $(INSTALL) -m 644 -D $$instfile $$instdest/$$instfile; \ |
0c617c9a | 23 | done |
099dc9c2 BB |
24 | |
25 | uninstall-local: | |
a2eda2ff BB |
26 | release=$(SPL_META_VERSION)-$(SPL_META_RELEASE); \ |
27 | instdest=$(DESTDIR)/usr/src/spl-$$release/$(LINUX_VERSION); \ | |
099dc9c2 | 28 | $(RM) -R $$instdest |