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 += libdir
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
36 TOP_PWD := $(FPTOOLS_TOP_ABS)
37 HSP_IMPORTS:="$(TOP_PWD)/ghc/lib/ghc":"$(TOP_PWD)/ghc/lib/required":"$(TOP_PWD)/ghc/lib/glaExts":"$(TOP_PWD)/ghc/lib/concurrent"
38 SCRIPT_SUBST_VARS += HSP_IMPORTS
42 # no INTERP: do *not* want #! script stuck on the front
44 # what's the deal? I'll add it for now (and perhaps pay for it later :-)
51 INSTALL_SCRIPTS+=$(SCRIPT_PROG)
52 INSTALL_LIBEXECS=$(C_PROG)
55 # Before really installing the script, we have to
56 # reconfigure it such that the paths it refers to,
57 # point to the installed utils.
61 @$(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
64 CLEAN_FILES += $(SCRIPT_PROG)
65 include $(TOP)/mk/target.mk
68 # Hack to re-create the in-situ build tree script after
69 # having just installed it.
73 @$(MAKE) $(MFLAGS) BIN_DIST=0 $(SCRIPT_PROG)