Ver código fonte

Changed to use -h flag to cgg and better way of preserving old tables.h
if not changed. Nice huh, Andy?

sater 40 anos atrás
pai
commit
79ea4bdea3

+ 2 - 4
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)

+ 2 - 4
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)

+ 2 - 4
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)

+ 2 - 4
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)

+ 2 - 4
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)

+ 2 - 4
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)