summaryrefslogtreecommitdiff
path: root/include/Makemodule.am
blob: 89bc669ddca2853657ca5faeb8d40f7ac8825bdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
noinst_HEADERS += \
	include/libacl.h \
	include/acl.h \
	include/acl_ea.h \
	include/misc.h \
	include/walk_tree.h

SUBST_INSTALL_HEADER = \
	subst_install_header() { \
	  file=`echo "$$1" | sed -e 's,^.*/,,'`; \
	  $(SED) -e "s/\<EXPORT\>/extern/" < "$$1" > "include/$$file.t" || exit 1; \
	  $(MKDIR_P) "$$2" || exit 1; \
	  $(INSTALL_HEADER) "include/$$file.t" "$$2/$$file" || exit 1; \
	  $(RM) "include/$$file.t"; \
	}; \
	subst_install_header

install-libacl_h: include/libacl.h
	$(SUBST_INSTALL_HEADER) "$<" "$(DESTDIR)$(pkgincludedir)"
install-acl_h: include/acl.h
	$(SUBST_INSTALL_HEADER) "$<" "$(DESTDIR)$(sysincludedir)"
install-data-local: install-libacl_h install-acl_h
uninstall-local:
	-rm -f "$(DESTDIR)$(pkgincludedir)/libacl.h" "$(DESTDIR)$(sysincludedir)/acl.h"