From 595f15f48d19d1fb177bad417d9f3bead95d942f Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Wed, 17 Apr 2002 17:38:41 +0000 Subject: [PATCH] (dist-hook): Simplified to not use "cd"; now it works for relative pathnames in $(distdir). --- doc/Makefile.am | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index 30fa5521a..19e3a1333 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -32,12 +32,11 @@ EXAMPLE_SMOB_FILES = \ OLDFMT = oldfmt.c dist-hook: + cp $(srcdir)/$(OLDFMT) $(distdir)/ mkdir $(distdir)/example-smob - (cd $(srcdir); \ - cp $(OLDFMT) $(distdir); \ - dest="`cd $(distdir)/example-smob; pwd`"; \ - cd example-smob; \ - cp $(EXAMPLE_SMOB_FILES) $$dest) + for f in $(EXAMPLE_SMOB_FILES); do \ + cp $(srcdir)/example-smob/$$f $(distdir)/example-smob/; \ + done # pending the papers from Robert Merkel # EXTRA_DIST = guile.1