Improved installation of make_ files

This commit is contained in:
ceriel 1991-12-16 15:35:14 +00:00
parent 0c59e2e12d
commit c6f6df87ae
3 changed files with 3 additions and 4 deletions

View file

@ -12,7 +12,7 @@ all: back.$(LIBSUF)
back.$(LIBSUF): $(SRC_DIR)/mach.h back.$(LIBSUF): $(SRC_DIR)/mach.h
-mkdir back -mkdir back
cd back; cp $(BACK)/*h . ; cp $(BACK)/Makefile . ; cd .. cd back; cp $(BACK)/*h . ; cp $(BACK)/Makefile . ; cd ..
if [ -d $(SRC_DIR)/back.src ] ; then cd back; cp $(SRC_DIR)/back.src/* . ; cd .. ; fi -if [ -d $(SRC_DIR)/back.src ] ; then cd back; cp $(SRC_DIR)/back.src/* . ; cd .. ; fi
cd back; make SRC_DIR=$(SRC_DIR) CC="$(CC)" COPTIONS="$(COPTIONS)" TARGET_HOME=$(TARGET_HOME) ; cd .. cd back; make SRC_DIR=$(SRC_DIR) CC="$(CC)" COPTIONS="$(COPTIONS)" TARGET_HOME=$(TARGET_HOME) ; cd ..
$(AR) r back.$(LIBSUF) back/*.$(SUF) $(AR) r back.$(LIBSUF) back/*.$(SUF)
$(RANLIB) back.$(LIBSUF) $(RANLIB) back.$(LIBSUF)

View file

@ -30,5 +30,5 @@ ce/dummy1: ceg/ceg $(SRC_DIR)/EM_table $(SRC_DIR)/mach.c
-mkdir ce -mkdir ce
-cp $(SRC_DIR)/mach.c ce/mach.c -cp $(SRC_DIR)/mach.c ce/mach.c
cd ce ; ../ceg/ceg -l < $(DEF)/not_impl/not_impl_table ; cp $(DEF)/*.c . ; cp $(DEF)/*/*.c . ; cd .. cd ce ; ../ceg/ceg -l < $(DEF)/not_impl/not_impl_table ; cp $(DEF)/*.c . ; cp $(DEF)/*/*.c . ; cd ..
if [ -d $(SRC_DIR)/ce.src ] ; then cd ce ; cp $(SRC_DIR)/ce.src/*.c . ; cd .. ; fi -if [ -d $(SRC_DIR)/ce.src ] ; then cd ce ; cp $(SRC_DIR)/ce.src/*.c . ; cd .. ; fi
cd ce ; $(EM)/lib.bin/cpp -P $(SRC_DIR)/EM_table | ../ceg/ceg -l ; touch dummy1 ; cd .. cd ce ; $(EM)/lib.bin/cpp -P $(SRC_DIR)/EM_table | ../ceg/ceg -l ; touch dummy1 ; cd ..

View file

@ -12,14 +12,13 @@ all:
install: install:
-mkdir $(CEGLIB) -mkdir $(CEGLIB)
-mkdir $(UTIL) -mkdir $(UTIL)
for i in $(UtilList) ; do cp $$i $(UTIL)/$$i ; done for i in $(UtilList) ; do mk_makefile $(SRC_DIR)/$$i > $(UTIL)/$$i ; done
{ echo TARGET_HOME=$(TARGET_HOME); cat $(SRC_DIR)/install_ceg ; } > $(TARGET_HOME)/bin/install_ceg { echo TARGET_HOME=$(TARGET_HOME); cat $(SRC_DIR)/install_ceg ; } > $(TARGET_HOME)/bin/install_ceg
chmod +x $(TARGET_HOME)/bin/install_ceg chmod +x $(TARGET_HOME)/bin/install_ceg
{ echo TARGET_HOME=$(TARGET_HOME); echo SUF=$(SUF); echo LIBSUF=$(LIBSUF); cat $(SRC_DIR)/update_ceg ; } > $(TARGET_HOME)/bin/update_ceg { echo TARGET_HOME=$(TARGET_HOME); echo SUF=$(SUF); echo LIBSUF=$(LIBSUF); cat $(SRC_DIR)/update_ceg ; } > $(TARGET_HOME)/bin/update_ceg
chmod +x $(TARGET_HOME)/bin/update_ceg chmod +x $(TARGET_HOME)/bin/update_ceg
cmp: cmp:
-for i in $(UtilList) ; do cmp $$i $(UTIL)/$$i ; done
clean: clean: