improved installation mechanism

This commit is contained in:
ceriel 1991-10-14 09:38:04 +00:00
parent da6ac05990
commit 33ec8e07ed
12 changed files with 41 additions and 28 deletions

View file

@ -28,7 +28,9 @@ ashow: $(SRC_DIR)/ashow.c
install: all
for i in $(ALL); do rm -f $(BINDIR)/$$i; cp $$i $(BINDIR)/$$i; done
for i in anm.1 asize.1 astrip.1; do rm -f $(MANDIR)/$$i; cp $(SRC_DIR)/$$i $(MANDIR)/$$i; done
if [ $(DO_MACHINE_INDEP) = y ] ; \
then for i in anm.1 asize.1 astrip.1; do rm -f $(MANDIR)/$$i; cp $(SRC_DIR)/$$i $(MANDIR)/$$i; done ; \
fi
cmp: all
-for i in $(ALL); do cmp $$i $(BINDIR)/$$i; done

View file

@ -24,10 +24,10 @@ clean:
-rm -f ass *.$(SUF) maktab *.old asstb.c
install : all
rm -f $(TARGET_HOME)/lib.bin/em_ass
cp ass $(TARGET_HOME)/lib.bin/em_ass
rm -f $(TARGET_HOME)/man/em_ass.6
cp $(SRC_DIR)/em_ass.6 $(TARGET_HOME)/man/em_ass.6
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/em_ass.6 $(TARGET_HOME)/man/em_ass.6 ; \
fi
cmp : all
-cmp ass $(TARGET_HOME)/lib.bin/em_ass

View file

@ -51,7 +51,9 @@ clean:
install: $(PROGRAM)
cp $(PROGRAM) $(DEST)/$(PROGRAM)
cp $(SRC_DIR)/manpage $(MAN)/yacc.1
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/manpage $(MAN)/yacc.1 ; \
fi
cmp: $(PROGRAM)
-cmp $(PROGRAM) $(DEST)/$(PROGRAM)

View file

@ -13,7 +13,9 @@ all: cid cclash prid tabgen
install: all
cp cid cclash prid tabgen $(TARGET_BIN)
cp $(SRC_DIR)/cid.1 $(SRC_DIR)/cclash.1 $(SRC_DIR)/prid.1 $(SRC_DIR)/tabgen.1 $(TARGET_MAN)
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/cid.1 $(SRC_DIR)/cclash.1 $(SRC_DIR)/prid.1 $(SRC_DIR)/tabgen.1 $(TARGET_MAN) ; \
fi
cmp: all
-cmp cid $(TARGET_BIN)/cid

View file

@ -112,10 +112,10 @@ cfiles: hfiles LLfiles $(GSRC)
@touch cfiles
install: all
rm -f $(CEMPP)
cp cpp $(CEMPP)
rm -f $(MANDIR)/cpp.6
cp $(SRC_DIR)/cpp.6 $(MANDIR)/cpp.6
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/cpp.6 $(MANDIR)/cpp.6 ; \
fi
cmp: all
-cmp cpp $(CEMPP)

View file

@ -144,9 +144,11 @@ lint : $(FLEX_C_SOURCES)
install: first_flex $(SRC_DIR)/flex.skel
rm -f $(BINDIR)/flex
cp flex $(BINDIR)/flex
cp $(SRC_DIR)/flex.skel $(AUXDIR)/flex.skel
cp $(SRC_DIR)/flex.1 $(MANDIR)/flex.1
cp $(SRC_DIR)/flexdoc.1 $(MANDIR)/flexdoc.1
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/flex.skel $(AUXDIR)/flex.skel ; \
cp $(SRC_DIR)/flex.1 $(MANDIR)/flex.1 ; \
cp $(SRC_DIR)/flexdoc.1 $(MANDIR)/flexdoc.1 ; \
fi
clean :
rm -f core errs flex *.$(SUF) parse.c *.lint parse.h tags

View file

@ -68,7 +68,9 @@ all: make.main
install: all
cp grind $(TARGET_HOME)/bin/grind
cp $(SRC_DIR)/grind.1 $(TARGET_HOME)/man/grind.1
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/grind.1 $(TARGET_HOME)/man/grind.1 ; \
fi
cmp: all
-cmp grind $(TARGET_HOME)/bin/grind

View file

@ -91,7 +91,9 @@ all: test
install: $(INT)
cp $(INT) $(TARGET_HOME)/bin/int
cp $(SRC_DIR)/int.1 $(TARGET_HOME)/man/int.1
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/int.1 $(TARGET_HOME)/man/int.1 ; \
fi
cmp: $(INT)
-cmp $(INT) $(TARGET_HOME)/bin/int

View file

@ -50,10 +50,11 @@ led: $(OFILES)
$(CC) $(LDFLAGS) $(OFILES) $(LDLIBS) -o led
install:led
rm -f $(LIBDIR)/em_led $(TARGET_HOME)/man/led.6 $(TARGET_HOME)/man/ack.out.5
cp led $(LIBDIR)/em_led
cp $(SRC_DIR)/led.6 $(TARGET_HOME)/man/led.6
cp $(SRC_DIR)/ack.out.5 $(TARGET_HOME)/man/ack.out.5
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/led.6 $(TARGET_HOME)/man/led.6 ; \
cp $(SRC_DIR)/ack.out.5 $(TARGET_HOME)/man/ack.out.5 ; \
fi
cmp: led
-cmp led $(LIBDIR)/em_led

View file

@ -61,12 +61,13 @@ clean:
rm -f $(DEC_PATH) $(ENC_PATH) esize *.$(SUF) *.old
install : all
rm -f $l/em_$(DEC_PATH) $l/em_$(ENC_PATH) $(TARGET_HOME)/bin/esize $(TARGET_HOME)/man/em_decode.6 $(TARGET_HOME)/man/esize.1
cp $(DEC_PATH) $l/em_$(DEC_PATH)
cp $(ENC_PATH) $l/em_$(ENC_PATH)
cp esize $(TARGET_HOME)/bin/esize
cp $(SRC_DIR)/em_decode.6 $(TARGET_HOME)/man/em_decode.6
cp $(SRC_DIR)/esize.1 $(TARGET_HOME)/man/esize.1
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/em_decode.6 $(TARGET_HOME)/man/em_decode.6 ; \
cp $(SRC_DIR)/esize.1 $(TARGET_HOME)/man/esize.1 ; \
fi
cmp : all
-cmp $(DEC_PATH) $l/em_$(DEC_PATH)

View file

@ -32,10 +32,10 @@ cgg: cgg.$(SUF) $(OFILES) output.$(SUF)
$(CC) $(LDFLAGS) $(OFILES) output.$(SUF) $(TARGET_HOME)/lib.bin/em_data.$(LIBSUF) -o cgg
install: cgg
rm -f $(TARGET_HOME)/lib.bin/ncgg
cp cgg $(TARGET_HOME)/lib.bin/ncgg
rm -f $(MANDIR)/ncgg.6
cp $(SRC_DIR)/ncgg.6 $(MANDIR)/ncgg.6
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/ncgg.6 $(MANDIR)/ncgg.6 ; \
fi
cmp: cgg
-cmp cgg $(TARGET_HOME)/lib.bin/ncgg

View file

@ -43,12 +43,11 @@ cmp: all
-cmp $(SRC_DIR)/em_opt.6 $(TARGET_HOME)/man/em_opt.6
install:all
rm -f $(TARGET_HOME)/lib.bin/em_opt
cp opt $(TARGET_HOME)/lib.bin/em_opt
rm -f $(TARGET_HOME)/lib.bin/em_opt2
cp opt2 $(TARGET_HOME)/lib.bin/em_opt2
rm -f $(TARGET_HOME)/man/em_opt.6
cp $(SRC_DIR)/em_opt.6 $(TARGET_HOME)/man/em_opt.6
if [ $(DO_MACHINE_INDEP) = y ] ; \
then cp $(SRC_DIR)/em_opt.6 $(TARGET_HOME)/man/em_opt.6 ; \
fi
pattern.c: $(SRC_DIR)/patterns mktab
$(CPP) $(SRC_DIR)/patterns | mktab > pattern.c