From: chak Date: Mon, 16 Apr 2001 01:30:16 +0000 (+0000) Subject: [project @ 2001-04-16 01:30:16 by chak] X-Git-Tag: Approximately_9120_patches~2147 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=63320e403b8260e71a39cfba34ac95fa71175207;p=ghc-hetmet.git [project @ 2001-04-16 01:30:16 by chak] $(bindir) has to be in place before creating symbolic links (otherwise, rpms cannot be built with the BUILD_ROOT feature). --- diff --git a/mk/target.mk b/mk/target.mk index 64cf1c9..59223f6 100644 --- a/mk/target.mk +++ b/mk/target.mk @@ -701,6 +701,7 @@ $(LINK) : $(LINK_TARGET) # install links to script drivers. # install :: + @$(INSTALL_DIR) $(bindir) @if ( $(PERL) -e '$$fn="$(bindir)/$(LINK)"; exit ((! -f $$fn || -l $$fn) ? 0 : 1);' ); then \ echo "Creating a symbol link from $(LINK_TARGET) to $(LINK) in $(bindir)"; \ $(RM) $(bindir)/$(LINK); \