2 include $(TOP)/mk/boilerplate.mk
7 # Note: might be overridden from cmd-line (see install rule below)
14 SCRIPT_OBJS=hstags.prl
22 ifneq "$(BIN_DIST)" "1"
23 SCRIPT_SUBST_VARS += libdir
27 # The hstags script is configured with different
28 # set of config variables, depending on whether it
29 # is to be installed or not.
31 ifeq "$(INSTALLING)" "1"
33 ifeq "$(BIN_DIST)" "1"
34 SCRIPT_PREFIX_FILES += prefix.txt
37 TOP_PWD := $(FPTOOLS_TOP_ABS)
38 HSP_IMPORTS:="$(TOP_PWD)/ghc/lib/ghc":"$(TOP_PWD)/ghc/lib/required":"$(TOP_PWD)/ghc/lib/glaExts":"$(TOP_PWD)/ghc/lib/concurrent"
39 SCRIPT_SUBST_VARS += HSP_IMPORTS
43 # no INTERP: do *not* want #! script stuck on the front
45 # what's the deal? I'll add it for now (and perhaps pay for it later :-)
52 INSTALL_SCRIPTS+=$(SCRIPT_PROG)
53 INSTALL_LIBEXECS=$(C_PROG)
56 # Before really installing the script, we have to
57 # reconfigure it such that the paths it refers to,
58 # point to the installed utils.
62 @$(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
65 CLEAN_FILES += $(SCRIPT_PROG)
66 include $(TOP)/mk/target.mk
69 # Hack to re-create the in-situ build tree script after
70 # having just installed it.
74 @$(MAKE) $(MFLAGS) BIN_DIST=0 $(SCRIPT_PROG)