diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-03-16 20:59:59 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-03-16 20:59:59 -0400 |
commit | 9b2a1257150ef97a3ee7f29fd3f9e1d87a4a948e (patch) | |
tree | b28cd52db50aaa74bf6db6d85356dc23f7dce48d | |
parent | 0fae755514be16abb9a43769a6a6f496e9bd19e7 (diff) | |
download | calfuse-9b2a1257150ef97a3ee7f29fd3f9e1d87a4a948e.tar.gz |
Improve portability of data file installation
-rw-r--r-- | Makefile.am | 3 | ||||
-rw-r--r-- | Makefile.in | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 184fbc2..ee9ba1b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -32,7 +32,8 @@ EXTRA_DIST += contrib install-data-local: $(DATADIRS) mkdir -p $(DESTDIR)$(pkgdatadir) ; \ - find $(DATADIRS) -type f | xargs -I{} install -D -m 644 {} $(DESTDIR)$(pkgdatadir)/{} + for d in $(DATADIRS); do mkdir -p "$(DESTDIR)$(pkgdatadir)/$$d"; done ; \ + find $(DATADIRS) -type f | xargs -I{} install -m 644 {} $(DESTDIR)$(pkgdatadir)/{} download-data: ( cd $(srcdir) ; \ diff --git a/Makefile.in b/Makefile.in index d692b8c..c4e8450 100644 --- a/Makefile.in +++ b/Makefile.in @@ -843,7 +843,8 @@ uninstall-am: install-data-local: $(DATADIRS) mkdir -p $(DESTDIR)$(pkgdatadir) ; \ - find $(DATADIRS) -type f | xargs -I{} install -D -m 644 {} $(DESTDIR)$(pkgdatadir)/{} + for d in $(DATADIRS); do mkdir -p "$(DESTDIR)$(pkgdatadir)/$$d"; done ; \ + find $(DATADIRS) -type f | xargs -I{} install -m 644 {} $(DESTDIR)$(pkgdatadir)/{} download-data: ( cd $(srcdir) ; \ |