X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=Makefile;h=b5760a26980c2b26faa23780bfa5135efb4dbf41;hb=13381c346af5f3e86d9fdf6c04b1cb9ca4b54a56;hp=5a04c3531d0fef5187a4557eb00a4109d57ee681;hpb=26ac91603dc5dab166667622bbc5e7de6d585f3c;p=plcapi.git diff --git a/Makefile b/Makefile index 5a04c35..b5760a2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ # Makefile for phpxmlrpc library -# $Id: Makefile,v 1.37 2008/03/06 22:37:19 ggiunta Exp $ ### USER EDITABLE VARS ### @@ -12,45 +11,49 @@ PHPINCLUDEDIR=/usr/local/lib/php # mkdir is a thorny beast under windows: make sure we can not use the cmd version, running eg. "make MKDIR=mkdir.exe" MKDIR=mkdir +#find too +FIND=find + #### DO NOT TOUCH FROM HERE ONWARDS ### # recover version number from code # thanks to Firman Pribadi for unix command line help -export VERSION=$(shell egrep "\$GLOBALS *\[ *'xmlrpcVersion' *\] *= *'" xmlrpc.inc | sed -r s/"(.*= *' *)([0-9a-zA-Z.-]+)(.*)"/\\2/g ) - -LIBFILES=xmlrpc.inc xmlrpcs.inc xmlrpc_wrappers.inc compat/*.php - -EXTRAFILES=test.pl \ - test.py \ - rsakey.pem \ - workspace.testPhpServer.fttb - -DEMOFILES=vardemo.php \ - demo1.txt \ - demo2.txt \ - demo3.txt - -DEMOSFILES=discuss.php \ - server.php \ - proxy.php - -DEMOCFILES=agesort.php \ - client.php \ - comment.php \ - introspect.php \ - mail.php \ - simple_call.php \ - which.php \ - wrap.php \ - zopetest.php - -TESTFILES=testsuite.php \ - benchmark.php \ - parse_args.php \ - phpunit.php \ - verify_compat.php \ - PHPUnit/*.php +# on unix shells lasts char should be \\2/g ) +export VERSION=$(shell egrep "\$GLOBALS *\[ *'xmlrpcVersion' *\] *= *'" lib/xmlrpc.inc | sed -r s/"(.*= *' *)([0-9a-zA-Z.-]+)(.*)"/\2/g ) + +LIBFILES=lib/xmlrpc.inc lib/xmlrpcs.inc lib/xmlrpc_wrappers.inc + +EXTRAFILES=extras/test.pl \ + extras/test.py \ + extras/rsakey.pem \ + extras/workspace.testPhpServer.fttb + +DEMOFILES=demo/vardemo.php \ + demo/demo1.txt \ + demo/demo2.txt \ + demo/demo3.txt + +DEMOSFILES=demo/server/discuss.php \ + demo/server/server.php \ + demo/server/proxy.php + +DEMOCFILES=demo/client/agesort.php \ + demo/client/client.php \ + demo/client/comment.php \ + demo/client/introspect.php \ + demo/client/mail.php \ + demo/client/simple_call.php \ + demo/client/which.php \ + demo/client/wrap.php \ + demo/client/zopetest.php + +TESTFILES=test/testsuite.php \ + test/benchmark.php \ + test/parse_args.php \ + test/phpunit.php \ + test/verify_compat.php \ + test/PHPUnit/*.php INFOFILES=Changelog \ Makefile \ @@ -66,7 +69,7 @@ DEBUGGERFILES=debugger/index.php \ all: install install: - cd lib && cp ${LIBFILES} ${PHPINCLUDEDIR} + cp ${LIBFILES} ${PHPINCLUDEDIR} @echo Lib files have been copied to ${PHPINCLUDEDIR} cd doc && $(MAKE) install @@ -90,22 +93,22 @@ xmlrpc-${VERSION}.zip xmlrpc-${VERSION}.tar.gz: ${LIBFILES} ${DEBUGGERFILES} ${I ${MKDIR} xmlrpc-${VERSION}/demo ${MKDIR} xmlrpc-${VERSION}/demo/client ${MKDIR} xmlrpc-${VERSION}/demo/server - cp --parents ${DEMOFILES} xmlrpc-${VERSION}/demo - cp --parents ${DEMOCFILES} xmlrpc-${VERSION}/demo/client - cp --parents ${DEMOSFILES} xmlrpc-${VERSION}/demo/server ${MKDIR} xmlrpc-${VERSION}/test ${MKDIR} xmlrpc-${VERSION}/test/PHPUnit - cp --parents ${TESTFILES} xmlrpc-${VERSION}/test ${MKDIR} xmlrpc-${VERSION}/extras - cp --parents ${EXTRAFILES} xmlrpc-${VERSION}/extras ${MKDIR} xmlrpc-${VERSION}/lib - ${MKDIR} xmlrpc-${VERSION}/lib/compat - cp --parents ${LIBFILES} xmlrpc-${VERSION}/lib ${MKDIR} xmlrpc-${VERSION}/debugger - cp ${DEBUGGERFILES} xmlrpc-${VERSION}/debugger + cp --parents ${DEMOFILES} xmlrpc-${VERSION} + cp --parents ${DEMOCFILES} xmlrpc-${VERSION} + cp --parents ${DEMOSFILES} xmlrpc-${VERSION} + cp --parents ${TESTFILES} xmlrpc-${VERSION} + cp --parents ${EXTRAFILES} xmlrpc-${VERSION} + cp --parents ${LIBFILES} xmlrpc-${VERSION} + cp --parents ${DEBUGGERFILES} xmlrpc-${VERSION} cp ${INFOFILES} xmlrpc-${VERSION} cd doc && $(MAKE) dist - find xmlrpc-${VERSION} -type f ! -name "*.fttb" ! -name "*.pdf" ! -name "*.gif" -exec dos2unix {} \; +# on unix shells last char should be \; + ${FIND} xmlrpc-${VERSION} -type f ! -name "*.fttb" ! -name "*.pdf" ! -name "*.gif" -exec dos2unix {} ; -rm xmlrpc-${VERSION}.zip xmlrpc-${VERSION}.tar.gz tar -cvf xmlrpc-${VERSION}.tar xmlrpc-${VERSION} gzip xmlrpc-${VERSION}.tar