Library realclean doesn't delete .pic_o

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Jan 22 19:31:21 AEDT 1998


On 20-Jan-1998, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> Hi,
> 
> If I follow the instructions on making a Mercury package, build it,
> and then mmake realclean, the .pic_o files get left behind.
> libpackage.dep should probably include $(pic_os) as well as
> $(os) in the clean target.

Estimated hours taken: 0.25

compiler/modules.m:
	Add a command to the rule for `mmake clean' int the
	generated `.dep' files to remove the `.pic_o' files.

Index: modules.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/modules.m,v
retrieving revision 1.51
diff -u -u -r1.51 modules.m
--- modules.m	1998/01/21 05:29:53	1.51
+++ modules.m	1998/01/22 08:24:17
@@ -1238,6 +1238,8 @@
 		"\t-rm -f $(", ModuleName, ".cs) ", ModuleName, "_init.c\n",
 		"\t-rm -f $(", ModuleName, ".ss) ", ModuleName, "_init.s\n",
 		"\t-rm -f $(", ModuleName, ".os) ", ModuleName, "_init.o\n",
+		"\t-rm -f $(", ModuleName, ".pic_os) ",
+						ModuleName, "_init.pic_o\n",
 		"\t-rm -f $(", ModuleName, ".trans_opt_dates)\n",
 		"\t-rm -f $(", ModuleName, ".trans_opts)\n",
 		"\t-rm -f $(", ModuleName, ".profs)\n",

-- 
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