Skip to main content

Patch for "make clean" failure on Cygwin

No replies
wmunsil
Offline
Joined: 2009-07-05
Points: 0

Please refer to http://forums.java.net/jive/message.jspa?messageID=287132.

This patch to defs.mk (rev 18478) and rules.mk (rev 18407), both in [phoneme] / components / cdc / trunk / build / share, seems to fix the issue described there.

It relies on $(CVM_BUILDDIRS) being used only to make directories and remove directories. Since directories are made with "mkdir -p", the classes directory need not be included there; it can be specified at the time of the removal.

I don't think the formatting of the patch will survive posting, but you should be able to get the gist of it.

--- unpatched/defs.mk 2009-08-20 10:11:51.421875000 -0600
+++ patched/defs.mk 2009-08-20 10:24:35.125000000 -0600
@@ -1426,7 +1426,6 @@
$(CVM_DERIVEDROOT)/javavm/runtime \
$(CVM_DERIVEDROOT)/javavm/runtime/opcodeconsts \
$(CVM_DERIVEDROOT)/javavm/include \
- $(CVM_DERIVEDROOT)/classes \
$(CVM_DERIVEDROOT)/classes/sun/misc \
$(CVM_DERIVEDROOT)/jni \
$(CVM_DERIVEDROOT)/cni \
--- unpatched/rules.mk 2009-08-20 10:12:11.625000000 -0600
+++ patched/rules.mk 2009-08-20 10:25:02.046875000 -0600
@@ -1031,7 +1031,7 @@
rm -rf $(CVM_BUILDTIME_CLASSESZIP) \
$(CVM_TEST_CLASSESZIP) $(CVM_DEMO_CLASSESJAR)
rm -rf $(CVM_LIBDIR)
- rm -rf $(CVM_BUILDDIRS) $(CVM_BINDIR)/$(CVM)
+ rm -rf $(CVM_BUILDDIRS) $(CVM_DERIVEDROOT)/classes $(CVM_BINDIR)/$(CVM)
rm -rf $(CVM_JCC_CLASSPATH)
rm -rf $(CVM_DERIVEDROOT)
rm -rf $(CVM_PROPS_BUILD) $(CVM_POLICY_BUILD)