added head_ac

This commit is contained in:
eck 1990-09-27 16:37:22 +00:00
parent 7dff46d44e
commit 851b82ee09
2 changed files with 30 additions and 5 deletions

View file

@ -0,0 +1,15 @@
if [ $# = 1 ]
then
NAM=`expr $1 : '^\(\..*\)'`
if [ X$NAM = X ]
then
NAM=$1
else
NAM=../$NAM
fi
echo $NAM
exit 0
else
echo PATH_ERROR
exit 1
fi

View file

@ -7,14 +7,21 @@ SUB=
LIBC="PREF=$(PREF)" "SUB=$(SUB)" LIBC="PREF=$(PREF)" "SUB=$(SUB)"
OLIB=tail_$(PREF)$(SUB) OLIB=tail_$(PREF)$(SUB)
install: cplibc install: cplibc cphead
cplibc: cplibc: libsrc
make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=`homefromsubdir $(EMHOME)`" tailcp
cphead: head_$(PREF).e
make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=$(EMHOME)" headcp
head_$(PREF).e: libsrc
libsrc: $(EMHOME)/lang/cem/libcc.ansi/libsrc .
cp $(EMHOME)/lang/cem/libcc.ansi/libsrc . cp $(EMHOME)/lang/cem/libcc.ansi/libsrc .
tar xf libsrc tar xf libsrc
make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=../$(EMHOME)" tailcp
cmp: cmplibc cmp: cmplibc cmphead
-../../compare $(OLIB) -../../compare $(OLIB)
cmplibc: cmplibc:
@ -22,8 +29,11 @@ cmplibc:
tar xf libsrc tar xf libsrc
make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=../$(EMHOME)" tail make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=../$(EMHOME)" tail
cmphead: head_$(PREF).e
make -f $(MAKEFILE) $(LIBC) $(MACHDEF) "EMHOME=../$(EMHOME)" head
clean: clean:
rm -rf `cat LIST` LIST OLIST MakeArch Makefile make.proto libsrc rm -rf `cat LIST` LIST OLIST MakeArch Makefile make.proto libsrc head_$(PREF).[e$(SUF)]
opr: opr:
make pr | opr make pr | opr