Removed # in commands

This commit is contained in:
ceriel 1992-06-26 12:54:57 +00:00
parent 44a1c5620c
commit 45d0d9f68f
20 changed files with 26 additions and 45 deletions

View file

@ -58,3 +58,4 @@ vax.c
version.c
xsum.c
xsum0.out
mk_tokdefs

View file

@ -99,8 +99,7 @@ pr:
make pr | opr
depend: $(CFILES) tokdefs.h
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \
@ -113,16 +112,15 @@ f2c: $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) $(TARGET_HOME)/modules/lib/libstring.$(LIBSUF) -o f2c
gram.c: $(GSRC) $(SRC_DIR)/defs.h tokdefs.h
( sed <tokdefs.h "s/#define/%token/" ;\
( sed <tokdefs.h "s/^.define/%token/" ;\
cat $(GSRC) ) >gram.in
yacc gram.in
echo "(expect 4 shift/reduce)"
sed 's/^# line.*/\/* & *\//' y.tab.c >gram.c
rm -f gram.in y.tab.c
mv y.tab.c gram.c
rm -f gram.in
tokdefs.h: $(SRC_DIR)/tokens
grep -n . <$(SRC_DIR)/tokens | \
sed "s/\([^:]*\):\(.*\)/#define \2 \1/" >tokdefs.h
tokdefs.h: $(SRC_DIR)/tokens $(SRC_DIR)/mk_tokdefs
$(SRC_DIR)/mk_tokdefs < $(SRC_DIR)/tokens > tokdefs.h
clean:
rm -f gram.c *.$(SUF) f2c tokdefs.h Out

View file

@ -86,8 +86,7 @@ ack: $(OBJ)
$(CC) $(LDFLAGS) -o ack $(OBJ) $(MODDIR)/libstring.$(LIBSUF)
depend: $(ISRC)
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile > Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -129,8 +129,7 @@ tags: cfiles
ctags $(SRC)
depend: cfiles
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(SRC) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -46,8 +46,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -49,8 +49,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -53,8 +53,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -46,8 +46,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -83,8 +83,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -55,8 +55,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -68,8 +68,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -47,8 +47,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -79,8 +79,7 @@ opr:
make pr | opr
depend: ./itemtab.h
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -46,8 +46,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -60,8 +60,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -56,8 +56,7 @@ opr:
make pr | opr
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -104,8 +104,7 @@ dependencies: resolved
do_deps `grep '.c$$' Cfiles`
make.main: dependencies make_macros lists $(SRC_DIR)/proto.main
sed -e '/^#DEPENDENCIES/,$$d' -e '/^#PARAMS/r make_macros' -e '/^#LISTS/r lists' $(SRC_DIR)/proto.main > make.main
echo '#DEPENDENCIES' >> make.main
rm_deps $(SRC_DIR)/proto.main | sed -e '/^.PARAMS/r make_macros' -e '/^.LISTS/r lists' > make.main
cat *.dep >> make.main
make_macros: Makefile
@ -127,7 +126,7 @@ lists: Cfiles
echo "C_SRC = \\" > lists
echo $(CFILES) >> lists
echo "OBJ = \\" >> lists
echo $(CFILES) | sed -e 's#[^ ]*/##g' -e 's/\.c/.$$(SUF)/g' >> lists
echo $(CFILES) | sed -e 's|[^ ]*/||g' -e 's/\.c/.$$(SUF)/g' >> lists
clean:
-make -f make.main clean

View file

@ -171,8 +171,7 @@ bare: clean
(cd switch; make bare)
depend: ./warn.h trap_msg warn_msg
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -72,8 +72,7 @@ clean:
rm -f Out *.$(SUF) led
depend:
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \

View file

@ -71,8 +71,7 @@ regnoglob.c: $(SRC_DIR)/reg.c
cp $(SRC_DIR)/reg.c regnoglob.c
depend: pattern.c pop_push.c regglob.c regnoglob.c
sed '/^#DEPENDENCIES/,$$d' Makefile >Makefile.new
echo '#DEPENDENCIES' >>Makefile.new
rm_deps Makefile >Makefile.new
for i in $(CFILES) pattern.c regglob.c regnoglob.c ; do \
echo "`basename $$i .c`.$$(SUF): $$i" >> Makefile.new ; \
echo ' $$(CC) -c $$(CFLAGS)' $$i >> Makefile.new ; \