cvs diff: tests/warnings/Mmake

Fergus Henderson fjh at cs.mu.oz.au
Wed Mar 19 05:39:22 AEDT 1997


Estimated hours taken: 0.25

tests/warnings/Mmake:
	Simplify the code slightly: use MCFLAGS=$(MCFLAGS-$@) to
	specify special flags for particular files, rather than using
	hard-coded rules.

Index: Mmake
===================================================================
RCS file: /home/staff/zs/imp/tests/warnings/Mmake,v
retrieving revision 1.13
diff -u -r1.13 Mmake
--- Mmake	1997/02/08 16:16:43	1.13
+++ Mmake	1997/03/18 18:35:41
@@ -10,6 +10,16 @@
 
 #-----------------------------------------------------------------------------#
 
+# some files need to be compiled with special options
+
+MCFLAGS = $(MCFLAGS-$*) $(EXTRA_MCFLAGS)
+
+MCFLAGS-duplicate_call		= --warn-duplicate-calls
+MCFLAGS-unused_args_test	= --warn-unused-args
+MCFLAGS-unused_import		= --warn-interface-imports
+
+#-----------------------------------------------------------------------------#
+
 %.res:	%.exp %.err
 	-rm -f $@
 	diff -u $*.exp $*.err > $@
@@ -21,18 +31,6 @@
 RESS=	$(PROGS:%=%.res)
 
 #-----------------------------------------------------------------------------#
-
-duplicate_call.err:
-	$(MC) --grade $(GRADE) -C --warn-duplicate-calls --errorcheck-only \
-		duplicate_call > duplicate_call.err 2>&1
-
-unused_args_test.err:
-	$(MC) --grade $(GRADE) -C --warn-unused-args --errorcheck-only \
-		unused_args_test > unused_args_test.err 2>&1
-
-unused_import.err:
-	$(MC) --grade $(GRADE) -C --warn-interface-imports --errorcheck-only \
-		unused_import > unused_import.err 2>&1
 
 depend:	$(DEPENDS)
 

-- 
Fergus Henderson <fjh at cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3         |     -- the last words of T. S. Garp.



More information about the developers mailing list