From: ceriel Date: Wed, 18 Dec 1991 09:44:10 +0000 (+0000) Subject: Use cp_dir to copy directories X-Git-Tag: release-5-5~534 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b23ed92d7e3f0782b7e011468db5b3be8305b852;p=ack.git Use cp_dir to copy directories --- 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` ; \