`buildopts' may affect the selection of object files.

Make sure we pass $(BUILDOPTS) to the `clean' target
so that `make clean' works on the same set of object
files.  Otherwise, we may end up with an incorrectly
built and up-to-date object file.
This commit is contained in:
Ruslan Ermilov 2001-03-30 08:04:25 +00:00
parent 0af7bca250
commit 42037fc8b4

View File

@ -993,7 +993,7 @@ void prog_makefile_rules(FILE *outmk, prog_t *p)
p->ident, p->ident);
fprintf(outmk, "\n");
fprintf(outmk, "%s_clean:\n", p->ident);
fprintf(outmk, "\t(cd $(%s_SRCDIR) && $(MAKE) clean)\n\n",
fprintf(outmk, "\t(cd $(%s_SRCDIR) && $(MAKE) $(BUILDOPTS) clean)\n\n",
p->ident);
} else {
fprintf(outmk, "%s_make:\n", p->ident);