Commit be41d742 authored by qrczak's avatar qrczak
Browse files

[project @ 2001-07-16 06:33:22 by qrczak]

Fix paths in installed hsc2hs driver.
parent 50e701e8
# -----------------------------------------------------------------------------
# $Id: Makefile,v 1.18 2001/07/11 13:10:31 rrt Exp $
# $Id: Makefile,v 1.19 2001/07/16 06:33:22 qrczak Exp $
TOP=../..
include $(TOP)/mk/boilerplate.mk
......@@ -25,13 +25,16 @@ endif
ifeq "$(INSTALLING)" "1"
ifeq "$(BIN_DIST)" "1"
HSC2HS_BINDIR=$$\"\"libexecdir
HSC2HS_DIR=$$\"\"libdir
HSC2HS_EXTRA=
else
HSC2HS_BINDIR=$(libexecdir)
HSC2HS_DIR=$(libdir)
HSC2HS_EXTRA=--cc=$(bindir)/ghc-$(ProjectVersion)
endif # BIN_DIST
else
HSC2HS_BINDIR=$(FPTOOLS_TOP_ABS)/$(CURRENT_DIR)
HSC2HS_DIR=$(FPTOOLS_TOP_ABS)/$(CURRENT_DIR)
ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
HSC2HS_EXTRA="--cc=$(CC) --cflag=-D__GLASGOW_HASKELL__=$(ProjectVersionInt) -I$(FPTOOLS_TOP_ABS)/$(INCLUDE_DIR)"
......@@ -44,7 +47,7 @@ endif
$(SCRIPT_PROG) : Makefile
$(INSTALLED_SCRIPT_PROG) : $(TOP)/mk/config.mk
SCRIPT_SUBST_VARS = HSC2HS_DIR HS_PROG HSC2HS_EXTRA
SCRIPT_SUBST_VARS = HSC2HS_BINDIR HSC2HS_DIR HS_PROG HSC2HS_EXTRA
SCRIPT_OBJS=hsc2hs.sh
INTERP=$(SHELL)
......
......@@ -6,4 +6,4 @@ for arg do
esac
done
$HSC2HS_DIR/$HS_PROG -t $HSC2HS_DIR/template-hsc.h $HSC2HS_EXTRA "$@"
$HSC2HS_BINDIR/$HS_PROG -t $HSC2HS_DIR/template-hsc.h $HSC2HS_EXTRA "$@"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment