-# Makefile for phpxmlrpc library\r
-\r
-### USER EDITABLE VARS - can be passed as command-line options ###\r
-\r
-# path to PHP executable, preferably CLI version\r
-PHP=php\r
-\r
-# path were xmlrpc lib files will be copied to\r
-PHPINCLUDEDIR=/usr/local/lib/php\r
-\r
-# mkdir is a thorny beast under windows: make sure we can not use the cmd version, running eg. "make MKDIR=mkdir.exe"\r
-MKDIR=mkdir\r
-\r
-#find too\r
-FIND=find\r
-\r
-DOS2UNIX=dos2unix\r
-\r
-#### DO NOT TOUCH FROM HERE ONWARDS ###\r
-\r
-# recover version number from code\r
-# thanks to Firman Pribadi for unix command line help\r
-# on unix shells lasts char should be \\2/g )\r
-export VERSION=$(shell grep -E "\$GLOBALS *\[ *'xmlrpcVersion' *\] *= *'" lib/xmlrpc.inc | sed -r s/"(.*= *' *)([0-9a-zA-Z.-]+)(.*)"/\2/g )\r
-\r
-LIBFILES=lib/xmlrpc.inc lib/xmlrpcs.inc lib/xmlrpc_wrappers.inc \\r
- src/*.php src/Helper/*.php\r
-\r
-EXTRAFILES=extras/test.pl \\r
- extras/test.py \\r
- extras/rsakey.pem \\r
- extras/workspace.testPhpServer.fttb\r
-\r
-DEMOFILES=demo/vardemo.php \\r
- demo/demo1.xml \\r
- demo/demo2.xml \\r
- demo/demo3.xml\r
-\r
-DEMOSFILES=demo/server/discuss.php \\r
- demo/server/server.php \\r
- demo/server/proxy.php\r
-\r
-DEMOCFILES=demo/client/agesort.php \\r
- demo/client/client.php \\r
- demo/client/comment.php \\r
- demo/client/introspect.php \\r
- demo/client/mail.php \\r
- demo/client/simple_call.php \\r
- demo/client/which.php \\r
- demo/client/wrap.php \\r
- demo/client/zopetest.php\r
-\r
-TESTFILES=test/testsuite.php \\r
- tests/benchmark.php \\r
- tests/parse_args.php \\r
- test/InvalidHostTest.php \\r
- test/LocalHostTest.php \\r
- test/ParsingBugsTest.php \\r
- tests/verify_compat.php\r
-\r
-INFOFILES=Changelog \\r
- Makefile \\r
- NEWS \\r
- README\r
-\r
-DEBUGGERFILES=debugger/index.php \\r
- debugger/action.php \\r
- debugger/common.php \\r
- debugger/controller.php\r
-\r
-\r
-all: install\r
-\r
-install:\r
- cp ${LIBFILES} ${PHPINCLUDEDIR}\r
- @echo Lib files have been copied to ${PHPINCLUDEDIR}\r
- cd doc && $(MAKE) install\r
-\r
-test:\r
- cd test && ${PHP} -q testsuite.php\r
-\r
-\r
-### the following targets are to be used for library development ###\r
-\r
-# make tag target: tag existing working copy as release in git.\r
-tag:\r
- git tag v${VERSION}\r
- git push origin --tags\r
-\r
-dist: xmlrpc-${VERSION}.zip xmlrpc-${VERSION}.tar.gz\r
-\r
-xmlrpc-${VERSION}.zip xmlrpc-${VERSION}.tar.gz: ${LIBFILES} ${DEBUGGERFILES} ${INFOFILES} ${TESTFILES} ${EXTRAFILES} ${DEMOFILES} ${DEMOSFILES} ${DEMOCFILES}\r
- @echo ---${VERSION}---\r
- rm -rf xmlrpc-${VERSION}\r
- ${MKDIR} xmlrpc-${VERSION}\r
- ${MKDIR} xmlrpc-${VERSION}/demo\r
- ${MKDIR} xmlrpc-${VERSION}/demo/client\r
- ${MKDIR} xmlrpc-${VERSION}/demo/server\r
- ${MKDIR} xmlrpc-${VERSION}/test\r
- ${MKDIR} xmlrpc-${VERSION}/test/PHPUnit\r
- ${MKDIR} xmlrpc-${VERSION}/extras\r
- ${MKDIR} xmlrpc-${VERSION}/lib\r
- ${MKDIR} xmlrpc-${VERSION}/debugger\r
- cp --parents ${DEMOFILES} xmlrpc-${VERSION}\r
- cp --parents ${DEMOCFILES} xmlrpc-${VERSION}\r
- cp --parents ${DEMOSFILES} xmlrpc-${VERSION}\r
- cp --parents ${TESTFILES} xmlrpc-${VERSION}\r
- cp --parents ${EXTRAFILES} xmlrpc-${VERSION}\r
- cp --parents ${LIBFILES} xmlrpc-${VERSION}\r
- cp --parents ${DEBUGGERFILES} xmlrpc-${VERSION}\r
- cp ${INFOFILES} xmlrpc-${VERSION}\r
- cd doc && $(MAKE) dist\r
-# on unix shells last char should be \;\r
- ${FIND} xmlrpc-${VERSION} -type f ! -name "*.fttb" ! -name "*.pdf" ! -name "*.gif" -exec ${DOS2UNIX} ;\r
- -rm xmlrpc-${VERSION}.zip xmlrpc-${VERSION}.tar.gz\r
- tar -cvf xmlrpc-${VERSION}.tar xmlrpc-${VERSION}\r
- gzip xmlrpc-${VERSION}.tar\r
- zip -r xmlrpc-${VERSION}.zip xmlrpc-${VERSION}\r
-\r
-doc:\r
- cd doc && $(MAKE) doc\r
-\r
-clean:\r
- rm -rf xmlrpc-${VERSION} xmlrpc-${VERSION}.zip xmlrpc-${VERSION}.tar.gz\r
- cd doc && $(MAKE) clean\r