File: Makefile.am

package info (click to toggle)
charliecloud 0.43-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,116 kB
  • sloc: python: 6,021; sh: 4,284; ansic: 3,863; makefile: 598
file content (31 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download | duplicates (2)
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
SUBDIRS = lib bin doc examples misc packaging test

EXTRA_DIST = CODE-OF-CONDUCT.rst \
				 GOVERNANCE.rst \
				 LICENSE \
             README.rst \
				 VERSION \
				 autogen.sh

# Embedded paths are in the source code suitable for running from the source
# directory (i.e., without install). When installing, those paths are often
# wrong, so re-write them with the correct paths we got from configure. Note:
# Some variables are in both Python and sh, so we use syntax valid for both;
# others are just sh.
install-exec-hook:
	@echo '### re-writing embedded paths ###'
	for i in $(DESTDIR)@bindir@/ch-convert \
	         $(DESTDIR)@bindir@/ch-fromhost \
	         $(DESTDIR)@bindir@/ch-image \
	         $(DESTDIR)@bindir@/ch-run-oci \
	         $(DESTDIR)@bindir@/ch-test \
	         $(DESTDIR)@libdir@/charliecloud/base.sh \
	         $(DESTDIR)@libexecdir@/charliecloud/doctest; \
	do \
	  if [ -e $$i ]; then \
	    sed -Ei -e 's|^(ch_lib ?= ?).+/lib"?$$|\1"@libdir@/charliecloud"|'\
	            -e 's|^(CHTEST_DIR=).+$$|\1@libexecdir@/charliecloud|' \
	            -e 's|^(CHTEST_EXAMPLES_DIR=).+$$|\1@docdir@/examples|' \
                $$i; \
	  fi \
	done