improved installation mechanism

This commit is contained in:
ceriel 1991-10-14 09:18:33 +00:00
parent 13327f2aec
commit 20a7f7b188
15 changed files with 40 additions and 45 deletions

View file

@ -124,11 +124,10 @@ all: make.main
make -f make.main main make -f make.main main
install: all install: all
@-mkdir $(TARGET_HOME)
@-mkdir $(TARGET_HOME)/lib.bin
@-mkdir $(TARGET_HOME)/man
cp main $(TARGET_HOME)/lib.bin/em_cemcom cp main $(TARGET_HOME)/lib.bin/em_cemcom
cp $(SRC_DIR)/cemcom.1 $(TARGET_HOME)/man/em_cemcom.6 if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/cemcom.1 $(TARGET_HOME)/man/em_cemcom.6 ; \
fi
cmp: all cmp: all
-cmp main $(TARGET_HOME)/lib.bin/em_cemcom -cmp main $(TARGET_HOME)/lib.bin/em_cemcom

View file

@ -63,11 +63,10 @@ all: make.main
make -f make.main main make -f make.main main
install: all install: all
@-mkdir $(TARGET_HOME)
@-mkdir $(TARGET_HOME)/lib.bin
@-mkdir $(TARGET_HOME)/man
cp main $(TARGET_HOME)/lib.bin/cpp.ansi cp main $(TARGET_HOME)/lib.bin/cpp.ansi
cp $(SRC_DIR)/ncpp.6 $(TARGET_HOME)/man/cpp.ansi.6 if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/ncpp.6 $(TARGET_HOME)/man/cpp.ansi.6 ; \
fi
cmp: all cmp: all
-cmp main $(TARGET_HOME)/lib.bin/cpp.ansi -cmp main $(TARGET_HOME)/lib.bin/cpp.ansi

View file

@ -7,7 +7,6 @@ SRC_DIR = $(SRC_HOME)/lang/cem/libcc.ansi
all: all:
install: install:
-mkdir $(TARGET_HOME)/include
-mkdir $(TARGET_HOME)/include/tail_ac -mkdir $(TARGET_HOME)/include/tail_ac
( cd $(SRC_DIR)/headers; tar cf - `cat LIST` ) | ( cd $(TARGET_HOME)/include/tail_ac ; tar xf - ) ( cd $(SRC_DIR)/headers; tar cf - `cat LIST` ) | ( cd $(TARGET_HOME)/include/tail_ac ; tar xf - )

View file

@ -129,8 +129,6 @@ all: make.main
make -f make.main main make -f make.main main
install: all install: all
@-mkdir $(TARGET_HOME)
@-mkdir $(TARGET_HOME)/lib.bin
@-mkdir $(TARGET_HOME)/lib.bin/lint @-mkdir $(TARGET_HOME)/lib.bin/lint
cp main $(TARGET_HOME)/lib.bin/lint/lpass1.ansi cp main $(TARGET_HOME)/lib.bin/lint/lpass1.ansi

View file

@ -126,8 +126,6 @@ all: make.main
make -f make.main main make -f make.main main
install: all install: all
@-mkdir $(TARGET_HOME)
@-mkdir $(TARGET_HOME)/lib.bin
@-mkdir $(TARGET_HOME)/lib.bin/lint @-mkdir $(TARGET_HOME)/lib.bin/lint
cp main $(TARGET_HOME)/lib.bin/lint/lpass1 cp main $(TARGET_HOME)/lib.bin/lint/lpass1

View file

@ -33,11 +33,12 @@ OBJ = lpass2.$(SUF) checkargs.$(SUF) read.$(SUF) report.$(SUF) class.$(SUF)
all: lpass2 lint.exec all: lpass2 lint.exec
install: all install: all
-mkdir $(TARGET_HOME)/lib.bin
-mkdir $(TARGET_HOME)/lib.bin/lint -mkdir $(TARGET_HOME)/lib.bin/lint
cp lpass2 $(TARGET_HOME)/lib.bin/lint/lpass2 cp lpass2 $(TARGET_HOME)/lib.bin/lint/lpass2
cp lint.exec $(TARGET_HOME)/bin/lint cp lint.exec $(TARGET_HOME)/bin/lint
cp $(SRC_DIR)/lint.1 $(TARGET_HOME)/man/lint.1 if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/lint.1 $(TARGET_HOME)/man/lint.1 ; \
fi
cmp: all cmp: all
-cmp lpass2 $(TARGET_HOME)/lib.bin/lint/lpass2 -cmp lpass2 $(TARGET_HOME)/lib.bin/lint/lpass2

View file

@ -79,12 +79,11 @@ CFILES = gram.c $(CSRC)
all: f2c all: f2c
install: all install: all
rm -f $(TARGET_HOME)/lib.bin/f2c
cp f2c $(TARGET_HOME)/lib.bin/f2c cp f2c $(TARGET_HOME)/lib.bin/f2c
rm -f $(TARGET_HOME)/man/f2c.6 if [ $(DO_MACHINE_INDEP) = y ] ; \
cp $(SRC_DIR)/f2c.6 $(TARGET_HOME)/man/f2c.6 then cp $(SRC_DIR)/f2c.6 $(TARGET_HOME)/man/f2c.6 ; \
rm -f $(TARGET_HOME)/include/_tail_cc/f2c.h cp $(SRC_DIR)/f2c.h $(TARGET_HOME)/include/_tail_cc/f2c.h ; \
cp $(SRC_DIR)/f2c.h $(TARGET_HOME)/include/_tail_cc/f2c.h fi
cmp: all cmp: all
-cmp f2c $(TARGET_HOME)/lib.bin/f2c -cmp f2c $(TARGET_HOME)/lib.bin/f2c

View file

@ -51,12 +51,11 @@ all: make.main
make -f make.main main make -f make.main main
install: all install: all
@-mkdir $(TARGET_HOME)
@-mkdir $(TARGET_HOME)/lib.bin
cp main $(TARGET_HOME)/lib.bin/em_m2 cp main $(TARGET_HOME)/lib.bin/em_m2
@-mkdir $(TARGET_HOME)/man @-mkdir $(TARGET_HOME)/man
rm -f $(TARGET_HOME)/man/em_m2.6 $(TARGET_HOME)/man/modula-2.1 if [ $(DO_MACHINE_INDEP) = y ] ; \
cp $(SRC_DIR)/em_m2.6 $(SRC_DIR)/modula-2.1 $(TARGET_HOME)/man then cp $(SRC_DIR)/em_m2.6 $(SRC_DIR)/modula-2.1 $(TARGET_HOME)/man ; \
fi
cmp: all cmp: all
-cmp main $(TARGET_HOME)/lib.bin/em_m2 -cmp main $(TARGET_HOME)/lib.bin/em_m2

View file

@ -25,5 +25,7 @@ opr:
make pr | opr make pr | opr
install: install:
-mkdir $(DEF_DIR) if [ $(DO_MACHINE_INDEP) = y ] ; \
for i in $(SOURCES) ; do cp $(SRC_DIR)/$$i $(DEF_DIR)/$$i ; done then if [ -d $(DEF_DIR) ] ; then : ; else mkdir $(DEF_DIR) ; fi ; \
for i in $(SOURCES) ; do cp $(SRC_DIR)/$$i $(DEF_DIR)/$$i ; done ; \
fi

View file

@ -38,11 +38,10 @@ all: make.main
make -f make.main main make -f make.main main
install: all install: all
@-mkdir $(TARGET_HOME)
@-mkdir $(TARGET_HOME)/bin
cp main $(TARGET_HOME)/bin/m2mm cp main $(TARGET_HOME)/bin/m2mm
@-mkdir $(TARGET_HOME)/man if [ $(DO_MACHINE_INDEP) = y ] ; \
cp $(SRC_DIR)/m2mm.1 $(TARGET_HOME)/man/m2mm.1 then cp $(SRC_DIR)/m2mm.1 $(TARGET_HOME)/man/m2mm.1 ; \
fi
cmp: all cmp: all
-cmp main $(TARGET_HOME)/lib.bin/em_m2 -cmp main $(TARGET_HOME)/lib.bin/em_m2

View file

@ -47,8 +47,6 @@ all: make.main
make -f make.main main make -f make.main main
install: all install: all
@-mkdir $(TARGET_HOME)
@-mkdir $(TARGET_HOME)/lib.bin
cp main $(TARGET_HOME)/lib.bin/em_occam cp main $(TARGET_HOME)/lib.bin/em_occam
cmp: all cmp: all

View file

@ -52,8 +52,6 @@ all: make.main
make -f make.main main make -f make.main main
install: all install: all
@-mkdir $(TARGET_HOME)
@-mkdir $(TARGET_HOME)/lib.bin
cp main $(TARGET_HOME)/lib.bin/em_pc cp main $(TARGET_HOME)/lib.bin/em_pc
cmp: all cmp: all

View file

@ -67,7 +67,9 @@ install: all
ls em2_???? | sed 's:em2_\(.*\):cp & $b24/em_\1:' | sh ls em2_???? | sed 's:em2_\(.*\):cp & $b24/em_\1:' | sh
ls em4_???? | sed 's:em4_\(.*\):cp & $b44/em_\1:' | sh ls em4_???? | sed 's:em4_\(.*\):cp & $b44/em_\1:' | sh
cp em $(TARGET_HOME)/bin/em cp em $(TARGET_HOME)/bin/em
cp em.1 $(TARGET_HOME)/man/em.1 if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp em.1 $(TARGET_HOME)/man/em.1 ; \
fi
cmp: all cmp: all
-ls em2_???? | sed 's:em2_\(.*\):cmp & $b24/em_\1:' | sh -ls em2_???? | sed 's:em2_\(.*\):cmp & $b24/em_\1:' | sh

View file

@ -40,7 +40,9 @@ install: all
-mkdir $b -mkdir $b
cp em_???? $b cp em_???? $b
cp em eminform $(TARGET_HOME)/bin cp em eminform $(TARGET_HOME)/bin
cp $(SRC_DIR)/em.1 $(SRC_DIR)/eminform.1 $(TARGET_HOME)/man if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/em.1 $(SRC_DIR)/eminform.1 $(TARGET_HOME)/man ; \
fi
cmp: all cmp: all
-cmp em_t--- $b/em_t--- -cmp em_t--- $b/em_t---

View file

@ -14,20 +14,22 @@ clean:
install: install:
cd src; make cd src; make
rm -f $(INSTALLDIR)/LLgen $(LIBDIR)/rec $(LIBDIR)/incl $(MANDIR)/LLgen.1
cp src/LLgen $(INSTALLDIR)/LLgen cp src/LLgen $(INSTALLDIR)/LLgen
cp $(SRC_HOME)/util/LLgen/lib/rec $(LIBDIR)/rec if [ $(DO_MACHINE_INDEP) = y ] ; \
cp $(SRC_HOME)/util/LLgen/lib/incl $(LIBDIR)/incl then cp $(SRC_HOME)/util/LLgen/lib/rec $(LIBDIR)/rec ; \
cp $(SRC_HOME)/util/LLgen/LLgen.1 $(MANDIR)/LLgen.1 cp $(SRC_HOME)/util/LLgen/lib/incl $(LIBDIR)/incl ; \
cp $(SRC_HOME)/util/LLgen/LLgen.1 $(MANDIR)/LLgen.1 ; \
fi
firstinstall: firstinstall:
cd src; make first cd src; make first
rm -f $(INSTALLDIR)/LLgen $(LIBDIR)/rec $(LIBDIR)/incl $(MANDIR)/LLgen.1
cp src/LLgen $(INSTALLDIR)/LLgen cp src/LLgen $(INSTALLDIR)/LLgen
-mkdir $(LIBDIR) if [ $(DO_MACHINE_INDEP) = y ] ; \
cp $(SRC_HOME)/util/LLgen/lib/rec $(LIBDIR)/rec then if [ -d $(LIBDIR) ] ; then : ; else mkdir $(LIBDIR) ; fi ; \
cp $(SRC_HOME)/util/LLgen/lib/incl $(LIBDIR)/incl cp $(SRC_HOME)/util/LLgen/lib/rec $(LIBDIR)/rec ; \
cp $(SRC_HOME)/util/LLgen/LLgen.1 $(MANDIR)/LLgen.1 cp $(SRC_HOME)/util/LLgen/lib/incl $(LIBDIR)/incl ; \
cp $(SRC_HOME)/util/LLgen/LLgen.1 $(MANDIR)/LLgen.1 ; \
fi
cmp: cmp:
cd src; make cd src; make