Use cp_dir to copy directories

This commit is contained in:
ceriel 1991-12-18 09:44:10 +00:00
parent e00c0aa591
commit b23ed92d7e
2 changed files with 4 additions and 4 deletions

View file

@ -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:

View file

@ -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` ; \