Changed to use -h flag to cgg and better way of preserving old tables.h

if not changed. Nice huh, Andy?
This commit is contained in:
sater 1984-10-23 13:29:41 +00:00
parent ab0db1c5fb
commit 79ea4bdea3
6 changed files with 12 additions and 24 deletions

View file

@ -63,10 +63,8 @@ cmp: all
tables.c: table
-mv tables.h tables.h.save
../../../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
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
-cmp -s tables.h tables.H || mv tables.H tables.h
lint: $(CFILES)
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)

View file

@ -63,10 +63,8 @@ cmp: all
tables.c: table
-mv tables.h tables.h.save
../../../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
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
-cmp -s tables.h tables.H || mv tables.H tables.h
lint: $(CFILES)
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)

View file

@ -63,10 +63,8 @@ cmp: all
tables.c: table
-mv tables.h tables.h.save
../../../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
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
-cmp -s tables.h tables.H || mv tables.H tables.h
lint: $(CFILES)
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)

View file

@ -63,10 +63,8 @@ cmp: all
tables.c: table
-mv tables.h tables.h.save
../../../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
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
-cmp -s tables.h tables.H || mv tables.H tables.h
lint: $(CFILES)
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)

View file

@ -63,10 +63,8 @@ cmp: all
tables.c: table
-mv tables.h tables.h.save
../../../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
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
-cmp -s tables.h tables.H || mv tables.H tables.h
lint: $(CFILES)
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)

View file

@ -63,10 +63,8 @@ cmp: all
tables.c: table
-mv tables.h tables.h.save
../../../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
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
-cmp -s tables.h tables.H || mv tables.H tables.h
lint: $(CFILES)
lint $(LINTOPTS) $(PREFLAGS) $(CFILES)