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:
parent
ab0db1c5fb
commit
79ea4bdea3
@ -63,10 +63,8 @@ cmp: all
|
|||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
-mv tables.h tables.h.save
|
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg > debug.out
|
-cmp -s tables.h tables.H || mv tables.H tables.h
|
||||||
-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)
|
||||||
|
|||||||
@ -63,10 +63,8 @@ cmp: all
|
|||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
-mv tables.h tables.h.save
|
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg > debug.out
|
-cmp -s tables.h tables.H || mv tables.H tables.h
|
||||||
-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)
|
||||||
|
|||||||
@ -63,10 +63,8 @@ cmp: all
|
|||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
-mv tables.h tables.h.save
|
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg > debug.out
|
-cmp -s tables.h tables.H || mv tables.H tables.h
|
||||||
-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)
|
||||||
|
|||||||
@ -63,10 +63,8 @@ cmp: all
|
|||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
-mv tables.h tables.h.save
|
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg > debug.out
|
-cmp -s tables.h tables.H || mv tables.H tables.h
|
||||||
-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)
|
||||||
|
|||||||
@ -63,10 +63,8 @@ cmp: all
|
|||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
-mv tables.h tables.h.save
|
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg > debug.out
|
-cmp -s tables.h tables.H || mv tables.H tables.h
|
||||||
-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)
|
||||||
|
|||||||
@ -63,10 +63,8 @@ cmp: all
|
|||||||
|
|
||||||
|
|
||||||
tables.c: table
|
tables.c: table
|
||||||
-mv tables.h tables.h.save
|
../../../lib/cpp -P table | ../../../lib/cgg -htables.H > debug.out
|
||||||
../../../lib/cpp -P table | ../../../lib/cgg > debug.out
|
-cmp -s tables.h tables.H || mv tables.H tables.h
|
||||||
-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…
x
Reference in New Issue
Block a user