From 79ea4bdea3b7ce46afe7740b96b3afb9312a2358 Mon Sep 17 00:00:00 2001 From: sater Date: Tue, 23 Oct 1984 13:29:41 +0000 Subject: [PATCH] Changed to use -h flag to cgg and better way of preserving old tables.h if not changed. Nice huh, Andy? --- mach/6500/cg/Makefile | 6 ++---- mach/pdp/cg/Makefile | 6 ++---- mach/proto/cg/Makefile | 6 ++---- mach/vax4/cg/Makefile | 6 ++---- mach/z80/cg/Makefile | 6 ++---- mach/z8000/cg/Makefile | 6 ++---- 6 files changed, 12 insertions(+), 24 deletions(-) diff --git a/mach/6500/cg/Makefile b/mach/6500/cg/Makefile index 522d02add..d9ceb73f9 100644 --- a/mach/6500/cg/Makefile +++ b/mach/6500/cg/Makefile @@ -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) diff --git a/mach/pdp/cg/Makefile b/mach/pdp/cg/Makefile index 522d02add..d9ceb73f9 100644 --- a/mach/pdp/cg/Makefile +++ b/mach/pdp/cg/Makefile @@ -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) diff --git a/mach/proto/cg/Makefile b/mach/proto/cg/Makefile index 522d02add..d9ceb73f9 100644 --- a/mach/proto/cg/Makefile +++ b/mach/proto/cg/Makefile @@ -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) diff --git a/mach/vax4/cg/Makefile b/mach/vax4/cg/Makefile index 522d02add..d9ceb73f9 100644 --- a/mach/vax4/cg/Makefile +++ b/mach/vax4/cg/Makefile @@ -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) diff --git a/mach/z80/cg/Makefile b/mach/z80/cg/Makefile index 522d02add..d9ceb73f9 100644 --- a/mach/z80/cg/Makefile +++ b/mach/z80/cg/Makefile @@ -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) diff --git a/mach/z8000/cg/Makefile b/mach/z8000/cg/Makefile index 522d02add..d9ceb73f9 100644 --- a/mach/z8000/cg/Makefile +++ b/mach/z8000/cg/Makefile @@ -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)