File: Makemodule.am

package info (click to toggle)
acl 2.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,200 kB
  • sloc: ansic: 5,916; sh: 5,379; perl: 279; makefile: 49; sed: 16
file content (24 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (4)
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"