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: all:
install: install:
-mkdir $(TARGET_HOME)/include/tail_ac if [ $(DO_MACHINE_INDEP) = y ] ; \
( cd $(SRC_DIR)/headers; tar cf - `cat LIST` ) | ( cd $(TARGET_HOME)/include/tail_ac ; tar xf - ) then cp_dir $(SRC_DIR)/headers $(TARGET_HOME)/include/tail_ac ; \
fi
clean: clean:

View file

@ -21,8 +21,7 @@ head:
$(MACH) $(MACHFL) -c -I$(TARGET_HOME)/h head_ac.e $(MACH) $(MACHFL) -c -I$(TARGET_HOME)/h head_ac.e
copy: copy:
( cd $(SRC_DIR) ; tar cf - LIST `cat LIST` head_ac.e ) | \ cp_dir $(SRC_DIR) .
tar xf -
for i in `cat LIST` ; \ for i in `cat LIST` ; \
do cd $$i ; \ do cd $$i ; \
make `cat LIST` ; \ make `cat LIST` ; \