From b23ed92d7e3f0782b7e011468db5b3be8305b852 Mon Sep 17 00:00:00 2001 From: ceriel Date: Wed, 18 Dec 1991 09:44:10 +0000 Subject: [PATCH] Use cp_dir to copy directories --- lang/cem/libcc.ansi/proto.make | 5 +++-- mach/proto/libg/proto.libcc.ansi | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lang/cem/libcc.ansi/proto.make b/lang/cem/libcc.ansi/proto.make index 10cc04812..83a8bd756 100644 --- a/lang/cem/libcc.ansi/proto.make +++ b/lang/cem/libcc.ansi/proto.make @@ -7,8 +7,9 @@ SRC_DIR = $(SRC_HOME)/lang/cem/libcc.ansi all: install: - -mkdir $(TARGET_HOME)/include/tail_ac - ( cd $(SRC_DIR)/headers; tar cf - `cat LIST` ) | ( cd $(TARGET_HOME)/include/tail_ac ; tar xf - ) + if [ $(DO_MACHINE_INDEP) = y ] ; \ + then cp_dir $(SRC_DIR)/headers $(TARGET_HOME)/include/tail_ac ; \ + fi clean: diff --git a/mach/proto/libg/proto.libcc.ansi b/mach/proto/libg/proto.libcc.ansi index 69822be01..33613a9a5 100644 --- a/mach/proto/libg/proto.libcc.ansi +++ b/mach/proto/libg/proto.libcc.ansi @@ -21,8 +21,7 @@ head: $(MACH) $(MACHFL) -c -I$(TARGET_HOME)/h head_ac.e copy: - ( cd $(SRC_DIR) ; tar cf - LIST `cat LIST` head_ac.e ) | \ - tar xf - + cp_dir $(SRC_DIR) . for i in `cat LIST` ; \ do cd $$i ; \ make `cat LIST` ; \