File: Makemodule.am

package info (click to toggle)
attr 1%3A2.4.48-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,688 kB
  • sloc: sh: 5,090; ansic: 2,406; perl: 272; makefile: 94; sed: 16
file content (34 lines) | stat: -rw-r--r-- 1,078 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
noinst_HEADERS += \
	include/attributes.h \
	include/error_context.h \
	include/libattr.h \
	include/misc.h \
	include/nls.h \
	include/walk_tree.h

pkginclude_HEADERS += \
	include/xattr.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-attributes_h: include/attributes.h
	$(SUBST_INSTALL_HEADER) "$<" "$(DESTDIR)$(pkgincludedir)"
install-error_context_h: include/error_context.h
	$(SUBST_INSTALL_HEADER) "$<" "$(DESTDIR)$(pkgincludedir)"
install-libattr_h: include/libattr.h
	$(SUBST_INSTALL_HEADER) "$<" "$(DESTDIR)$(pkgincludedir)"
install-data-local: install-attributes_h install-error_context_h install-libattr_h
uninstall-local:
	-rm -f \
		"$(DESTDIR)$(pkgincludedir)/attributes.h" \
		"$(DESTDIR)$(pkgincludedir)/error_context.h" \
		"$(DESTDIR)$(pkgincludedir)/libattr.h"