1 ##################################################
3 ### Makefile for LCLint testing ###
5 ### designed for use with GNU make ###
7 ##################################################
9 .PHONY: all fulltest quicktest funcpointer cast abstract
10 .PHONY: version help abstptr abstract alias alttypes ansireserved
11 .PHONY: argorder args blocks break cases cast charlit
12 .PHONY: clauses commentchar
13 .PHONY: compdestroy controldepth csyntax czechnames czechoslovaknames
14 .PHONY: decl enum exports external fields flags funcpointer glob globals
15 .PHONY: impabstract init inparam internal iter keep libs lintcomments
16 .PHONY: list macros macrosef merge modifies modtest moduncon mongoincludes
17 .PHONY: null observer oldstyle outglob outparam preds prefixes printflike rc
18 .PHONY: refcounts release repexpose sharing slovaknames special
19 .PHONY: specclauses stack staticarray
20 .PHONY: strings structassign
21 .PHONY: typequals ud ulstypes union unreachable unused
22 .PHONY: db1 db2 db3 tests2.2 tests2.2a tests2.4
23 .PHONY: all test fulltest expects quicktest
24 .PHONY: nullterminatedtest
26 .SUFFIXES: .out .expect .c .lcl .h .lh .diff
30 # Command to run lclint
34 # Make sure .lclintrc files are not used so test results do not
35 # depend on local settings.
36 LCLINTRN = $(LCLINTP) -nof -hints -booltype "bool"
37 LCLINTR = $(LCLINTRN) -exportlocal
39 UNITTESTS = help abstptr abstract alias alttypes ansireserved argorder args blocks break cases cast charlit clauses commentchar compdestroy controldepth csyntax czechnames czechoslovaknames decl enum exports external fields flags funcpointer glob globals impabstract init inparam internal iter keep libs lintcomments list macros macrosef merge modifies modtest moduncon mongoincludes null observer oldstyle outglob outparam preds prefixes printflike rc refcounts release repexpose sharing slovaknames specclauses special stack staticarray strings structassign typequals ud ulstypes union unreachable unused tests2.2 tests2.2a tests2.4 nullterminatedtest
41 UNITEXPECTS = $(addsuffix .expect, $(UNITTESTS))
43 INTEGTESTS = db1 db2 db3
44 INTEGEXPECTS = $(addsuffix .expect, $(INTEGTESTS))
46 LCLINTTESTS = $(UNITTESTS) $(INTEGTESTS)
53 CLEANOUTPUT = $(GREP) -v "LCLint 2." | $(GREP) -v "make -e" | $(GREP) -v "make\[" | $(GREP) -v "lclint -nof" | $(GREP) -v "make -e"
58 $(MAKE) -e $(*) |& $(CLEANOUTPUT) > $(*).expect ; \
62 $(MAKE) -e $(*) |& $(CLEANOUTPUT) > $(*).out ; \
63 diff $(*).expect $(*).out
66 echo "Saving old expects: " ; \
67 more *.expect | cat > expects-`date +"%y-%m-%d-%H"`
68 @$(foreach test, $(UNITTESTS), \
69 echo "Making "$(test)".expect: " ; \
70 $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).expect ; \
71 cat $(test).expect ; )
72 @echo "Integration Tests"
73 @$(foreach test, $(INTEGTESTS), \
74 echo "Making "$(test)".expect: "; \
75 $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).expect ; \
76 cat $(test).expect ; )
80 @echo 'Testing '$(LCLINTP)
84 @$(LCLINTP) -help version
85 @$(LCLINTP) -help vars
89 @$(foreach test, $(UNITTESTS), \
90 echo "Checking "$(test)"... " ; \
91 $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).out ; \
92 $(DIFF) $(test).expect $(test).out ; \
93 if ($$status) echo "*** FAIL ***" ; \
96 @echo "Integration Tests"
98 @$(foreach test, $(INTEGTESTS), \
99 echo "Checking "$(test)"... "; \
100 $(MAKE) -e $(test) |& $(CLEANOUTPUT) > $(test).out ; \
101 $(DIFF) $(test).expect $(test).out ; )
103 quicktest: $(LCLINTTESTS)
110 -$(LCLINTP) -help version
114 -@setenv LARCH_PATH "/dev/null"; $(LCLINTP) empty.lcl
117 -@$(LCLINTP) +boolint +boolint
118 -@$(LCLINTP) -help flags alpha
119 -@$(LCLINTP) -help flags all
122 $(LCLINTR) abstptr -expect 9
123 $(LCLINTR) abstptr +voidabstract -expect 6
126 $(LCLINTR) abst_t.lcl commentcmd.c -expect 15
130 $(LCLINTR) mut alias +globalias -expect 19
131 $(LCLINTR) mut alias2 +globalias -expect 17
132 $(LCLINTR) +lh alias3 -expect 14
133 $(LCLINTR) +lh alias4 +boolint
134 $(LCLINTR) alias4 -pred +retalias -expect 6
135 $(LCLINTR) +lh alias5 +memchecks -null -specundef -expect 5
138 $(LCLINTR) alttypes.c -expect 2
141 $(LCLINTR) ansireserved.c +ansireserved -nolib -expect 8
142 $(LCLINTR) ansireserved.c +ansireserved +ansireservedlocal -nolib -expect 11
143 $(LCLINTRN) ansireserved.c +checks -exportlocal -exportheadervar -exportheader -expect 9
146 $(LCLINTR) argorder.c -expect 4
147 $(LCLINTR) argorder2 -expect 5
148 $(LCLINTR) argorder3.c -expect 8
149 $(LCLINTR) argorder4 -expect 9
150 $(LCLINTR) argorder4 -evalorder -expect 1
151 $(LCLINTR) argorder5.c +evalorderuncon -expect 3
154 $(LCLINTR) args -noeffect -expect 12
157 $(LCLINTR) blocks.c -expect 4
158 $(LCLINTR) blocks.c +ifblock +elseifcomplete -expect 7
159 $(LCLINTR) blocks.c -ifempty +whileempty +whileblock -expect 3
160 $(LCLINTR) blocks.c -ifempty +forempty +forblock -expect 3
161 $(LCLINTR) blocks.c +allempty -expect 6
162 $(LCLINTRN) blocks.c +strict -exportlocal +partial -exportheader -expect 11
165 $(LCLINTR) break.c -expect 4
166 $(LCLINTR) break.c +deepbreak -expect 6
167 $(LCLINTR) break.c +deepbreak -looploopbreak -expect 5
170 $(LCLINTR) cases.c -expect 5
171 $(LCLINTR) cases2.c -expect 2
172 $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -expect 3
173 $(LCLINTRN) cases2.c +checks -exportlocal -exportheader -branchstate -expect 3
176 $(LCLINTR) cast -accessmodule -expect 20
177 $(LCLINTRN) cast2.c +checks -exportlocal -exportheader -expect 3
180 $(LCLINTR) +hints charlit.c -expect 4
181 $(LCLINTR) +hints -numliteral charlit.c -expect 5
182 $(LCLINTR) +hints charlit.c +charintliteral +ignoresigns
185 $(LCLINTR) clauses.c +memchecks -expect 4
186 $(LCLINTR) clauses2.c +memchecks
187 $(LCLINTR) clauses3.c +memchecks -expect 2
188 $(LCLINTR) clauses3.c +memchecks +unixlib -expect 3
191 $(LCLINTR) commentchar.c -expect 4
192 $(LCLINTR) -commentchar '#' commentchar.c -expect 4
195 $(LCLINTR) +hints -controlnestdepth 2 controldepth.c -expect 2
196 $(LCLINTR) +hints -controlnestdepth 1 controldepth.c -expect 2
199 $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader -expect 1
200 $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy -expect 2
201 $(LCLINTRN) compdestroy.c +checks -exportlocal -exportheader +strictdestroy +strictusereleased -expect 3
202 $(LCLINTRN) compdestroy.c +strict +partial -exportheader -expect 3
205 $(LCLINTR) +quiet -incondefs csyntax.c
206 $(LCLINTR) +quiet csyntax2.c
207 $(LCLINTR) +quiet csyntax3.c
208 $(LCLINTR) +quiet -incondefs csyntax4.c
209 $(LCLINTR) +quiet csyntax5.c
210 $(LCLINTR) +quiet csyntax6.c
211 $(LCLINTR) +quiet csyntax7.c
212 $(LCLINTR) +quiet csyntax8.c
213 $(LCLINTR) +quiet csyntax9.c
214 $(LCLINTR) +quiet csyntax10.c
215 $(LCLINTR) +quiet csyntax11.c
216 $(LCLINTR) +quiet csyntax12.c
217 $(LCLINTR) +quiet csyntax13.c
218 $(LCLINTR) +quiet csyntax14.c
219 $(LCLINTR) +quiet csyntax15.c
220 $(LCLINTR) +quiet csyntax16.c
221 $(LCLINTR) +quiet csyntax17.c
224 $(LCLINTR) czechnames.c
225 $(LCLINTR) +hints +czech czechnames.c -expect 2
226 $(LCLINTR) +hints +czech -czechvars czechnames.c -expect 1
227 $(LCLINTR) +hints +czech -accessczech czechnames.c -expect 6
230 $(LCLINTR) +hints +czechoslovak czechnames.c -expect 1
231 $(LCLINTR) +hints +czechoslovak slovaknames.c -expect 1
232 $(LCLINTR) +hints +czechoslovak +slovakvars slovaknames.c -expect 2
235 # Was expect 3 before 2.4. Earlier versions did not handle implicit
236 # function pointers correctly.
240 $(LCLINTR) decl.c -expect 2
241 $(LCLINTRN) decl.c +strict -exportlocal -expect 5
242 $(LCLINTR) decl2 -expect 4
245 $(LCLINTR) enum -expect 16
246 $(LCLINTR) enum -misscase -expect 14
249 $(LCLINTR) exports.c +exporttype +exportvar +exportfcn +topuse +typeuse -expect 6
250 $(LCLINTR) exports.c +exportany -expect 3
254 $(LCLINTR) external.c +partial
255 $(LCLINTR) external.c +partial +distinctexternalnames -expect 2
256 $(LCLINTR) external.c -nolib +partial -externalnamelength 3 -expect 3
257 $(LCLINTR) external.c -nolib +partial -externalnamelength 3 +externalnamecaseinsensitive -expect 3
258 $(LCLINTR) external.c +partial -externalnamelength 3 -expect 4
261 $(LCLINTR) fields.c +memchecks -expect 6
262 $(LCLINTR) fields2.c +memchecks -expect 5
263 $(LCLINTR) fields3.c +memchecks
266 $(LCLINTR) flags.c -expect 8
267 $(LCLINTR) +nocomments flags.c -expect 2
269 # two new errors (invalid lhs)
272 $(LCLINTR) +memchecks +noparams funcpointer.c -expect 18
275 $(LCLINTR) glob -expect 4
276 $(LCLINTR) glob -globuse -expect 3
277 $(LCLINTR) glob +globunspec -expect 6
280 $(LCLINTR) -modifies globals.c -expect 5
281 $(LCLINTR) -modifies globals.c +allglobals -expect 6
282 $(LCLINTR) -modifies globals.c +impcheckedglobals -expect 6
283 $(LCLINTR) -modifies globals.c -globals -checkstrictglobals -expect 2
284 $(LCLINTR) -modifies globals.c +globunspec -expect 6
285 $(LCLINTR) -modifies globals.c +globunspec +allglobals -expect 8
288 $(LCLINTR) -accessfile impabstract.c
289 $(LCLINTR) -accessfile +hints +impabstract impabstract.c -expect 2
290 $(LCLINTR) -accessfile +hints +impabstract impabstract -expect 2
293 $(LCLINTR) init.c -expect 12
294 $(LCLINTRN) init.c +checks -exportlocal -exportheadervar -expect 15
297 $(LCLINTR) inparam.c -expect 2
298 $(LCLINTR) +impouts inparam.c -expect 1
301 $(LCLINTR) internal.c -expect 1
302 $(LCLINTR) internal.c +distinctinternalnames -expect 2
303 $(LCLINTR) internal.c -internalnamelen 28 -expect 3
304 $(LCLINTR) internal.c +internalnamecaseinsensitive -expect 3
305 $(LCLINTR) internal.c +internalnamecaseinsensitive +internalnamelookalike -expect 11
308 $(LCLINTR) iter -expect 14 -lclexpect 1
309 $(LCLINTR) iter2.c -expect 12
312 $(LCLINTR) keep.c +memchecks -expect 6
315 # 2 new errors found (fixed spec of signal)
319 $(LCLINTR) libs.c +longunsignedunsignedintegral -expect 15
320 $(LCLINTR) libs.c -expect 19
321 $(LCLINTR) libs.c +globunspec +modunspec -expect 22
322 $(LCLINTR) libs.c +strictlib +globunspec +modunspec -expect 39
325 $(LCLINTR) lintcomments.c -expect 4
326 $(LCLINTR) lintcomments.c -warnlintcomments -expect 1
327 $(LCLINTR) lintcomments.c -lintcomments -expect 4
330 $(LCLINTR) list.c -expect 3
333 $(LCLINTR) macros -expect 17
334 $(LCLINTR) macros.c +allmacros -expect 34
335 $(LCLINTR) macros.c +fcnmacros -expect 31
339 $(LCLINTR) macrosef -expect 4
340 $(LCLINTR) macrosef.c +allmacros -expect 3
341 $(LCLINTR) macrosef.c +allmacros +sefuncon -expect 4
344 $(LCLINTRN) merge.c +checks -exportlocal -exportheadervar -exportheader -expect 3
347 $(LCLINTR) modifies.c modclient.c +impcheckedstatics +mustmod -expect 7
350 $(LCLINTR) modtest -expect 10
351 $(LCLINTR) modtest +modunspec -expect 13
352 $(LCLINTR) modtest +mustmod -expect 14
355 $(LCLINTR) moduncon.c +moduncon -memchecks -expect 4
356 $(LCLINTRN) moduncon.c +strict -exportlocal -expect 22
359 $(LCLINTR) mongoincludes.c -includenest 1 -expect 19
360 $(LCLINTR) mongoincludes.c -includenest 2 -expect 10
361 $(LCLINTR) mongoincludes.c -includenest 3 -expect 4
362 $(LCLINTR) mongoincludes.c -includenest 4 -expect 1
363 $(LCLINTR) mongoincludes.c -includenest 5 -expect 0
366 $(LCLINTR) null1.c -expect 14
367 $(LCLINTR) null1.c -null -expect 4
368 $(LCLINTR) null2.c -expect 10
369 $(LCLINTR) null3.c -expect 15
370 $(LCLINTR) null3.c -warnunixlib +unixlib -expect 16
371 $(LCLINTR) null4.c -expect 1
372 $(LCLINTR) null5.c -expect 4
373 $(LCLINTR) null6 -expect 4
374 $(LCLINTR) +quiet null6.lcl -dump null6
375 $(LCLINTR) null6.c -load null6 -expect 4
378 # Before 2.4, expected one more because error was reported both as
379 # dependent and observer.
383 $(LCLINTRN) observer +checks -exportlocal -exportheader -expect 9
384 $(LCLINTRN) observer.c +checks -exportlocal -exportheader -expect 8
385 $(LCLINTR) observer.c -expect 7
388 $(LCLINTR) oldstyle -expect 3
391 $(LCLINTR) outglob -expect 10
394 $(LCLINTR) outparam -expect 12
397 $(LCLINTR) +hints preds.c -expect 6
398 $(LCLINTRN) +hints preds.c -weak -expect 1
399 $(LCLINTRN) +hints preds.c -strict -exportlocal -exportheader -expect 8
402 $(LCLINTR) prefixes.c +partial
403 $(LCLINTRN) prefixes.c +allmacros +checks -exportlocal +partial -exportheader -exportheadervar -expect 4
404 $(LCLINTR) prefixes.c -typeprefix "T" -expect 2
405 $(LCLINTR) prefixes.c -typeprefix "^" -expect 1
406 $(LCLINTR) prefixes.c -typeprefix "^*" -expect 2
407 $(LCLINTR) prefixes.c -typeprefix "^%*" -expect 2
408 $(LCLINTR) prefixes.c -typeprefix "^~*" -expect 2
409 $(LCLINTR) prefixes.c -typeprefix "^" +typeprefixexclude -expect 7
410 $(LCLINTR) prefixes.c -filestaticprefix "^^" -expect 4
411 $(LCLINTR) prefixes.c -filestaticprefix "^#" -expect 5
412 $(LCLINTR) prefixes.c -filestaticprefix "^?&x" -expect 5
413 $(LCLINTR) prefixes.c -globalprefix "G" -expect 1
414 $(LCLINTR) prefixes.c -globalprefix "&G?_^" -expect 1
415 $(LCLINTR) prefixes.c -externalprefix "G" -expect 5
416 $(LCLINTR) prefixes.c -typeprefix "T" -externalprefix "G" -expect 4
417 $(LCLINTR) prefixes.c -localprefix "?*" +localprefixexclude -expect 13
420 $(LCLINTR) printflike.c -expect 6
421 $(LCLINTR) printflike.c -warnlintcomments -expect 5
424 -$(LCLINTR) -DMYSTERY='"a flag\"wicked cool"' rc.c -expect 1
425 -$(LCLINTR) -DMYSTERY=12 rc.c -expect 1
426 -$(LCLINTR) -f rc1.lclintrc rc.c
427 -$(LCLINTR) -UMYSTERY -f rc1.lclintrc rc.c -expect 1
428 -$(LCLINTR) -f rc3.lclintrc rc.c -expect 1
431 $(LCLINTR) refcounts.c -expect 7
434 $(LCLINTR) release.c +memchecks -expect 1
437 $(LCLINTR) +lh repexpose +memchecks -expect 12
438 $(LCLINTR) repexpose +memchecks +retalias -expect 15
439 $(LCLINTRN) repexpose +checks -exportlocal -expect 27
442 $(LCLINTR) sharing1.c -expect 21
443 $(LCLINTR) sharing3.c -expect 3
444 $(LCLINTR) sharing4.c -expect 13
445 $(LCLINTR) sharing4.c -paramimptemp -expect 12
446 $(LCLINTR) sharing5.c -expect 6
449 $(LCLINTR) +hints slovaknames.c -expect 1
450 $(LCLINTR) +hints slovaknames.c +accessslovak
451 $(LCLINTR) +hints +slovak slovaknames.c -expect 3
452 $(LCLINTR) +hints +slovak -slovakvars slovaknames.c -expect 2
453 $(LCLINTR) +hints +slovak -accessslovak slovaknames.c -expect 7
456 $(LCLINTR) specclauses.c -expect 6
457 $(LCLINTR) specclauses2.c -expect 8
458 $(LCLINTR) specclauses3.c -expect 6
459 $(LCLINTR) specclauses4.c -expect 3
460 $(LCLINTR) specclauses5.c -expect 3
463 $(LCLINTR) special -expect 20
464 $(LCLINTR) special -relaxquals -expect 22
467 $(LCLINTR) stack.c -expect 5
468 $(LCLINTR) stack.c -stackref
471 $(LCLINTR) staticarray.c -expect 3
474 $(LCLINTR) strings.c -expect 3
475 $(LCLINTR) -readonlystrings -expect 1 strings.c
476 $(LCLINTR) +modobserverstrict -maintype -expect 4 strings.c
479 $(LCLINTR) structassign.c -expect 4
482 $(LCLINTR) typequals.c tq.lcl -expect 5
483 $(LCLINTR) typequals.c -expect 2
486 $(LCLINTR) ud.c -expect 9
487 $(LCLINTR) ud2 -specundef -expect 3
490 $(LCLINTR) ulstypes.c -expect 8
491 $(LCLINTR) ulstypes.c +ignorequals
492 $(LCLINTRN) ulstypes.c +strict -exportheader -exportheadervar -expect 28
495 $(LCLINTR) +memchecks union.c -expect 8
498 $(LCLINTR) unreachable.c -expect 5
499 $(LCLINTR) -unreachable unreachable.c -expect 2
500 $(LCLINTR) switch.c -expect 4
503 $(LCLINTRN) unused.c +checks -exportlocal -expect 3
504 $(LCLINTRN) unused.c +checks -exportlocal +topuse -expect 6
507 ### Bugs fixed and new features since version 2.1b
512 $(LCLINTR) boolops.c -expect 1 ; \
513 $(LCLINTR) bool.lcl booldef.c -expect 1 ; \
514 $(LCLINTR) boolenum.c -booltype BOOLEAN -expect 1 ; \
515 $(LCLINTR) break.c -expect 1 ; \
516 $(LCLINTR) bstring.c -expect 2 ; \
517 $(LCLINTR) decl.c -expect 1 ; \
518 $(LCLINTR) enumbool.c -expect 2 ; \
519 $(LCLINTR) enumbool.c -booltrue "true" -boolfalse "false" ; \
520 $(LCLINTR) extension.c ; \
521 $(LCLINTR) -gnuextensions extension.c ; \
522 $(LCLINTR) modarray.c ; \
523 $(LCLINTR) nestext.c -expect 1 ; \
524 $(LCLINTR) offsetof.c ; \
525 $(LCLINTR) sizeofarray.c -expect 3 ; \
526 $(LCLINTR) rex.c -expect 1 ; \
527 $(LCLINTR) struct.c -expect 1
531 $(LCLINTR) erik.c -expect 1 ; \
532 $(LCLINTR) boolcomp.c -expect 5 ; \
533 $(LCLINTR) boolenum.c ; \
534 $(LCLINTR) addassign.c -expect 1; \
535 $(LCLINTR) toralf.c -expect 5 ; \
536 $(LCLINTR) fred.c -booltype Bool ; \
537 $(LCLINTR) sizeof.c ; \
538 $(LCLINTR) arrayparam.c -expect 5 ; \
539 $(LCLINTR) notreached.c ; \
540 $(LCLINTR) duff.c -casebreak -expect 1 ; \
541 $(LCLINTR) obviousloop.c -expect 4 ; \
542 $(LCLINTR) bitops.c +bitwisesigned -expect 11 ; \
543 $(LCLINTR) bitops.c -expect 5 ; \
544 $(LCLINTR) isalpha.c +strictlib -expect 1 ; \
545 $(LCLINTR) isalpha.c -expect 1 ; \
546 $(LCLINTR) dobb.c ; \
547 $(LCLINTR) popik.c -expect 11
551 $(LCLINTR) emptycase.c ; \
552 $(LCLINTR) enumtest.c ; \
553 $(LCLINTR) duffs.c ; \
554 $(LCLINTR) bitfields.c ; \
555 $(LCLINTR) bug1.c ; \
556 $(LCLINTR) bug2.c -expect 5 ; \
557 $(LCLINTR) bug3.c ; \
558 $(LCLINTR) test0.c ; \
559 $(LCLINTR) test1.c ; \
560 $(LCLINTR) test2.c ; \
561 $(LCLINTR) hexconstants.c -expect 1 ; \
562 $(LCLINTR) +checks hexconstants.c -expect 4 ; \
563 $(LCLINTR) innercomment.c ; \
564 $(LCLINTR) nothing.c ; \
565 $(LCLINTR) offsetof.c -expect 2 ; \
566 $(LCLINTR) komazi.c ; \
567 $(LCLINTR) print.c ; \
568 $(LCLINTR) syslog.c -warnunixlib +unixlib ; \
569 $(LCLINTR) error.c -expect 1 ; \
570 $(LCLINTR) ulrich.c ; \
571 $(LCLINTR) cpptest.c '-D__P(x)=x' ; \
572 $(LCLINTR) longlong.c -expect 4; \
573 $(LCLINTR) subdir/main.c subdir/main.lcl ; \
574 $(LCLINTR) fink.c ; \
575 $(LCLINTR) driverstub.c ; \
576 $(LCLINTR) alignof.c -expect 2 ; \
577 $(LCLINTR) -D DBL_MANT_DIG=25 source.c
580 @cd nullterminatedtest; \
581 $(LCLINTR) test1.c; \
585 ### Integration Tests
589 setenv LCLINT '$(LCLINTRN)'; cd db1; $(MAKE) -e test
592 setenv LCLINT '$(LCLINTRN)'; cd db2; $(MAKE) -e test
595 setenv LCLINT '$(LCLINTRN)'; cd db3; $(MAKE) -e test
598 ### More integration tests are used locally. If you are developing
599 ### LCLint send mail to evs@larch.lcs.mit.edu to obtain extra
600 ### integration test cases.
603 -rm -f *~ #*# *.o *.lcs a.out
604 -cd db1 ; $(MAKE) clean
605 -cd db2 ; $(MAKE) clean
606 -cd db3 ; $(MAKE) clean