]> git.proxmox.com Git - mirror_spl-debian.git/blob - include/Makefile.am
31acf7e998838ba534045257447bae142635d1db
[mirror_spl-debian.git] / include / Makefile.am
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.
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
16
17 install-data-local:
18 release=$(SPL_META_VERSION)-$(SPL_META_RELEASE); \
19 instdest=$(DESTDIR)/usr/src/spl-$$release/$(LINUX_VERSION); \
20 instfiles=`find . -name '*.h'`; \
21 for instfile in $$instfiles; do \
22 $(INSTALL) -D $$instfile $$instdest/$$instfile; \
23 done
24
25 uninstall-local:
26 release=$(SPL_META_VERSION)-$(SPL_META_RELEASE); \
27 instdest=$(DESTDIR)/usr/src/spl-$$release/$(LINUX_VERSION); \
28 $(RM) -R $$instdest