2 include $(TOP)/mk/boilerplate.mk
7 # Note: might be overridden from cmd-line (see install rule below)
13 SCRIPT_OBJS=hstags.prl
21 ifneq "$(BIN_DIST)" "1"
22 SCRIPT_SUBST_VARS += INSTLIBDIR_GHC
26 # The hstags script is configured with different
27 # set of config variables, depending on whether it
28 # is to be installed or not.
30 ifeq "$(INSTALLING)" "1"
32 ifeq "$(BIN_DIST)" "1"
33 SCRIPT_PREFIX_FILES += prefix.txt
35 INSTLIBDIR_GHC=$(libdir)
38 TOP_PWD := $(FPTOOLS_TOP_ABS)
39 INSTLIBDIR_GHC=$(libdir)
40 HSP_IMPORTS:="$(TOP_PWD)/ghc/lib/ghc":"$(TOP_PWD)/ghc/lib/required":"$(TOP_PWD)/ghc/lib/glaExts":"$(TOP_PWD)/ghc/lib/concurrent"
41 SCRIPT_SUBST_VARS += HSP_IMPORTS
45 # no INTERP: do *not* want #! script stuck on the front
47 # what's the deal? I'll add it for now (and perhaps pay for it later :-)
54 INSTALL_PROGS=$(SCRIPT_PROG)
55 INSTALL_LIBEXECS=$(C_PROG)
58 # Before really installing the script, we have to
59 # reconfigure it such that the paths it refers to,
60 # point to the installed utils.
64 @$(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
67 CLEAN_FILES += $(SCRIPT_PROG)
68 include $(TOP)/mk/target.mk
71 # Hack to re-create the in-situ build tree script after
72 # having just installed it.
76 @$(MAKE) $(MFLAGS) BIN_DIST=0 $(SCRIPT_PROG)