Skip to content
Snippets Groups Projects
Commit 66a7a3cd authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Fixed bug that made the generated bin/pike script hardwired to the last

built architecture, instead of choosing the right build directory at
runtime.

Rev: Makefile:1.70
parent 067753a3
Branches
Tags
No related merge requests found
# #
# $Id: Makefile,v 1.69 2002/05/03 21:50:23 nilsson Exp $ # $Id: Makefile,v 1.70 2002/05/13 19:15:16 mast Exp $
# #
# Meta Makefile # Meta Makefile
# #
...@@ -147,23 +147,30 @@ documentation: ...@@ -147,23 +147,30 @@ documentation:
doc: documentation doc: documentation
# Don't make bin/pike if we're recursing with a $(METATARGET) since we
# don't want the backquote expression which usually is part of
# $(BUILDDIR) to be expanded in that script. It's better to evaluate
# it when the script is run, so that it can choose the build directory
# for the right architecture.
bin/pike: force bin/pike: force
@builddir='$(BUILDDIR)'; \ @if test \! -x bin/pike -o "x$(METATARGET)" = x; then \
builddir='$(BUILDDIR)'; \
case $$builddir in /*) ;; *) builddir="`pwd`/$$builddir";; esac; \ case $$builddir in /*) ;; *) builddir="`pwd`/$$builddir";; esac; \
sed -e "s@\"BUILDDIR\"@$$builddir@" < bin/pike.in > bin/pike sed -e "s@\"BUILDDIR\"@$$builddir@" < bin/pike.in > bin/pike && \
@chmod a+x bin/pike chmod a+x bin/pike; \
else :; fi
# This skips the modules. # This skips the modules.
pike: bin/pike pike: bin/pike
@$(MAKE) $(MAKE_FLAGS) "METATARGET=pike" @$(MAKE) $(MAKE_FLAGS) "METATARGET=pike"
install: install: bin/pike
@$(MAKE) $(MAKE_FLAGS) "METATARGET=install" @$(MAKE) $(MAKE_FLAGS) "METATARGET=install"
install_interactive: install_interactive: bin/pike
@$(MAKE) $(MAKE_FLAGS) "METATARGET=install_interactive" @$(MAKE) $(MAKE_FLAGS) "METATARGET=install_interactive"
tinstall: tinstall: bin/pike
@$(MAKE) $(MAKE_FLAGS) "METATARGET=tinstall" @$(MAKE) $(MAKE_FLAGS) "METATARGET=tinstall"
just_verify: just_verify:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment