2 include $(TOP)/mk/boilerplate.mk
10 SCRIPT_OBJS=mkdependHS.prl
12 RAWCPP TMPDIR UNLIT_PROG \
14 INSTALL_LIB_DIR INSTALL_DATA_DIR \
15 INSTALL_HSLIBS_DIR INSTALLING \
23 INSTALL_PROGS += $(SCRIPT_PROG)
25 INSTALL_HSLIBS_DIR:=$(libdir)/../hslibs-$(ProjectVersion)
26 INSTALL_LIB_DIR:=$(libdir)
27 INSTALL_DATA_DIR:=$(datadir)
29 ifeq "$(INSTALLING)" "1"
31 UNLIT_PROG:=$(libexecdir)/unlit
32 PRELUDE_DIRS:=$(libdir)/imports
34 TOP_PWD:=$(FPTOOLS_TOP_ABS)
35 UNLIT_PROG:=$(FPTOOLS_TOP_ABS)/ghc/utils/unlit/unlit
36 PRELUDE_DIRS:="$(FPTOOLS_TOP_ABS)/ghc/lib/ghc:$(FPTOOLS_TOP_ABS)/ghc/lib/required:$(FPTOOLS_TOP_ABS)/ghc/lib/glaExts:$(FPTOOLS_TOP_ABS)/ghc/lib/concurrent"
40 # Before really installing the script, we have to
41 # reconfigure it such that the paths it refers to,
42 # point to the installed utils.
46 $(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
48 CLEAN_FILES += $(SCRIPT_PROG)
50 include $(TOP)/mk/target.mk
52 # Hack to re-create the in-situ build tree script after
53 # having just installed it.
57 @$(MAKE) $(MFLAGS) $(SCRIPT_PROG)