We have only one copy of the script for compare and install now
they are present in ../..
This commit is contained in:
parent
7e31dee840
commit
828b4d62c9
|
@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c
|
||||||
cc -c $(CFLAGS) $(CDIR)/var.c
|
cc -c $(CFLAGS) $(CDIR)/var.c
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
../install cg
|
../../install cg
|
||||||
|
|
||||||
cmp: all
|
cmp: all
|
||||||
-../compare cg
|
-../../compare cg
|
||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
-mv tables.h tables.h.save
|
||||||
-cmp -s tables.h tables.H || mv tables.H tables.h
|
/lib/cpp -P table | ../../../lib/cgg > debug.out
|
||||||
|
-if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
-if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
|
||||||
lint: $(CFILES)
|
lint: $(CFILES)
|
||||||
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
||||||
|
|
|
@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c
|
||||||
cc -c $(CFLAGS) $(CDIR)/var.c
|
cc -c $(CFLAGS) $(CDIR)/var.c
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
../install cg
|
../../install cg
|
||||||
|
|
||||||
cmp: all
|
cmp: all
|
||||||
-../compare cg
|
-../../compare cg
|
||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
-mv tables.h tables.h.save
|
||||||
-cmp -s tables.h tables.H || mv tables.H tables.h
|
/lib/cpp -P table | ../../../lib/cgg > debug.out
|
||||||
|
-if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
-if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
|
||||||
lint: $(CFILES)
|
lint: $(CFILES)
|
||||||
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
||||||
|
|
|
@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c
|
||||||
cc -c $(CFLAGS) $(CDIR)/var.c
|
cc -c $(CFLAGS) $(CDIR)/var.c
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
../install cg
|
../../install cg
|
||||||
|
|
||||||
cmp: all
|
cmp: all
|
||||||
-../compare cg
|
-../../compare cg
|
||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
-mv tables.h tables.h.save
|
||||||
-cmp -s tables.h tables.H || mv tables.H tables.h
|
/lib/cpp -P table | ../../../lib/cgg > debug.out
|
||||||
|
-if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
-if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
|
||||||
lint: $(CFILES)
|
lint: $(CFILES)
|
||||||
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
||||||
|
|
|
@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c
|
||||||
cc -c $(CFLAGS) $(CDIR)/var.c
|
cc -c $(CFLAGS) $(CDIR)/var.c
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
../install cg
|
../../install cg
|
||||||
|
|
||||||
cmp: all
|
cmp: all
|
||||||
-../compare cg
|
-../../compare cg
|
||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
-mv tables.h tables.h.save
|
||||||
-cmp -s tables.h tables.H || mv tables.H tables.h
|
/lib/cpp -P table | ../../../lib/cgg > debug.out
|
||||||
|
-if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
-if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
|
||||||
lint: $(CFILES)
|
lint: $(CFILES)
|
||||||
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
||||||
|
|
|
@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c
|
||||||
cc -c $(CFLAGS) $(CDIR)/var.c
|
cc -c $(CFLAGS) $(CDIR)/var.c
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
../install cg
|
../../install cg
|
||||||
|
|
||||||
cmp: all
|
cmp: all
|
||||||
-../compare cg
|
-../../compare cg
|
||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
-mv tables.h tables.h.save
|
||||||
-cmp -s tables.h tables.H || mv tables.H tables.h
|
/lib/cpp -P table | ../../../lib/cgg > debug.out
|
||||||
|
-if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
-if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
|
||||||
lint: $(CFILES)
|
lint: $(CFILES)
|
||||||
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
||||||
|
|
|
@ -56,15 +56,17 @@ var.o: $(CDIR)/var.c
|
||||||
cc -c $(CFLAGS) $(CDIR)/var.c
|
cc -c $(CFLAGS) $(CDIR)/var.c
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
../install cg
|
../../install cg
|
||||||
|
|
||||||
cmp: all
|
cmp: all
|
||||||
-../compare cg
|
-../../compare cg
|
||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
-mv tables.h tables.h.save
|
||||||
-cmp -s tables.h tables.H || mv tables.H tables.h
|
/lib/cpp -P table | ../../../lib/cgg > debug.out
|
||||||
|
-if cmp -s tables.h.save tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
-if cmp -s /dev/null tables.h; then mv tables.h.save tables.h; else exit 0; fi
|
||||||
|
|
||||||
lint: $(CFILES)
|
lint: $(CFILES)
|
||||||
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)
|
||||||
|
|
Loading…
Reference in a new issue