need help with Makefile

From: Date: Sun, 19 Apr 2009 22:56:46 +0000
Subject: need help with Makefile
Groups: php.internals 
Request: Send a blank email to internals+get-43741@lists.php.net to get a copy of this message
Hi, I never do Makefile stuff, so I need someone who can tell me why this blasted piece of scripting doesn't work: @if test "a$(program_prefix)" != "a"; then \ PEAR_PREFIX = " -dp php_prefix=$(program_prefix)"; \ fi @if test "a$(program_suffix)" != "a"; then \ PEAR_SUFFIX = " -ds php_suffix=$(program_suffix)"; \ fi install-pear-installer: $(SAPI_CLI_PATH) @$(top_builddir)/sapi/cli/php $(PEAR_INSTALL_FLAGS) $(builddir)/install-pear-nozlib.phar -d "$(peardir)" -b "$(bindir)" $(PEAR_PREFIX) $(PEAR_SUFFIX) What I am trying to do is to pass in those options ONLY if --program_prefix or --program_suffix were specified in the configure line. Any working solution is appreciated. Thanks, Greg

« previous php.internals (#43741) next »