gareth 2002/11/18 03:02:42 Modified: c/src/xercesc Makefile.in Log: Problems using make tarball under linux. Patch by Steven White. 1) Seperate lines in a Makefile are run in seperate shells, thus 'cd' on a line on it's own is a NOOP. 2) When using GNU tar the produced tarfile had full paths starting from / 3) When creating include directories: child directories were created but not the parent, which doesn't work without 'mkdir -p' Revision Changes Path 1.11 +5 -4 xml-xerces/c/src/xercesc/Makefile.in Index: Makefile.in =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/Makefile.in,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- Makefile.in 15 Nov 2002 21:49:29 -0000 1.10 +++ Makefile.in 18 Nov 2002 11:02:42 -0000 1.11 @@ -104,7 +104,8 @@ PRODUCTNAME=xerces PRODUCTVERSION=${VER} -BINTARGETDIR=${HOME}/${PRODUCTNAME}-c-${PLATFORM}-${CXX}-${PRODUCTVERSION} +BINTARGETNAME=${PRODUCTNAME}-c-${PLATFORM}-${CXX}-${PRODUCTVERSION} +BINTARGETDIR=${HOME}/${BINTARGETNAME} all:: lib @@ -208,6 +209,7 @@ -${MKDIR} ${BINTARGETDIR} -${MKDIR} ${BINTARGETDIR}/bin -${MKDIR} ${BINTARGETDIR}/lib + -${MKDIR} ${BINTARGETDIR}/include ifeq (${TRANSCODER},ICU) echo -${MKDIR} ${BINTARGETDIR}/include/unicode endif @@ -304,8 +306,7 @@ tarball:: copy @echo Now package it all up using tar @echo TARing up all files ... - ${CD} ${BINTARGETDIR}/.. - tar -cvf ${BINTARGETDIR}.tar ${BINTARGETDIR} + cd ${BINTARGETDIR}/..; tar -cvf ${BINTARGETDIR}.tar ${BINTARGETNAME}/ @echo Finally compress the files @echo Compressing ${BINTARGETDIR}.tar ... gzip ${BINTARGETDIR}.tar
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]