You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Juergen Hermann <jh...@web.de> on 2001/01/29 14:25:57 UTC

VPATH in Makefile

Hi!

I needed this patch in order to have "make" work as expected; without 
the VPATH, each make call causes a full rebuild.

Index: Makefile.incl
===================================================================
RCS file: /home/cvspublic/xml-xerces/c/src/Makefile.incl,v
retrieving revision 1.34
diff -u -r1.34 Makefile.incl
--- Makefile.incl       2000/12/22 16:32:48     1.34
+++ Makefile.incl       2001/01/29 13:23:41
@@ -394,6 +394,8 @@
 .SUFFIXES:
 .SUFFIXES: .cpp .c .$(TO)
 
+VPATH=$(XML_OBJ_DIR)
+
 .cpp.$(TO):
        $(CC1) -c $(XML_BUILD_OPTIONS) $(XML_DEF) $(XML_INCL) 
$(EXTRA_COMPILE_OPTIONS) -o $(XML_OBJ_DIR)/$(@) $(<)