aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am11
1 files changed, 3 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am
index 7b0514c27..99b335ddc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -10,18 +10,13 @@ MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
install-data-local:
@$(NORMAL_INSTALL)
if test -d $(srcdir)/data; then \
- $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)/data; \
- for d in $(srcdir)/data/*; do \
- cp @CP_OPTIONS@ -f $$d $(DESTDIR)$(pkgdatadir)/data; \
- done \
+ $(mkinstalldirs) $(DESTDIR)$(pkgdatadir); \
+ (cd $(srcdir); tar -cf - data) | (cd $(DESTDIR)$(pkgdatadir); tar -xf -) \
fi
dist-hook:
if test -d data; then \
- mkdir $(distdir)/data; \
- for d in data/*; do \
- cp @CP_OPTIONS@ $$d $(distdir)/data; \
- done \
+ (cd $(srcdir); tar -cf - data) | (cd $(distdir); tar -xf -) \
fi
EXTRA_DIST = README AUTHORS COPYING e.spec