From randy.cs.lai at gmail.com  Sun Mar 23 08:10:31 2014
From: randy.cs.lai at gmail.com (Randy Lai)
Date: Sun, 23 Mar 2014 00:10:31 -0700
Subject: [Rd] Makevars clean target not in action?
In-Reply-To: <20140322173237.GA22878@cs.toronto.edu>
References: <mailman.23.1395486006.17262.r-devel@r-project.org>
	<20140322173237.GA22878@cs.toronto.edu>
Message-ID: <8DA6B9BB-2FCA-4192-B0AE-285825B3D89B@gmail.com>

Hi, developers

When I run `R CMD INSTALL --clean my_package`, only the .o files and the .so file are removed, however, they were deleted not because of the clean target defined in Makevars.
The clean target was indeed not executed.

I have the following simple Marvars to show that clean target is not functioning.

Makevars
-----------------------------

all: foo $(SHLIB)

clean: 
	rm -f *.o $(SHLIB)
	rm -f b

foo:
	touch b


After I run ``R CMD INSTALL --clean my_package``, the file `b` is still there.

Any thought?

Best,
Randy


[Rd] Makevars clean target not in action?
Randy Lai