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 \
24 INSTALL_PROGS += $(SCRIPT_PROG)
26 INSTALL_HSLIBS_DIR:=$(libdir)/../hslibs-$(ProjectVersion)
27 INSTALL_LIB_DIR:=$(libdir)
28 INSTALL_DATA_DIR:=$(datadir)
30 ifeq "$(INSTALLING)" "1"
32 UNLIT_PROG:=$(libexecdir)/unlit
33 PRELUDE_DIRS:=$(libdir)/imports
35 TOP_PWD:=$(FPTOOLS_TOP_ABS)
36 UNLIT_PROG:=$(FPTOOLS_TOP_ABS)/ghc/utils/unlit/unlit
37 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"
41 # Before really installing the script, we have to
42 # reconfigure it such that the paths it refers to,
43 # point to the installed utils.
47 $(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
49 CLEAN_FILES += $(SCRIPT_PROG)
51 include $(TOP)/mk/target.mk
53 # Hack to re-create the in-situ build tree script after
54 # having just installed it.
58 @$(MAKE) $(MFLAGS) $(SCRIPT_PROG)