2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/version.mk
5 # Note: might be overridden from cmd-line (see install rule below)
12 SCRIPT_OBJS=hstags.prl
20 # The hstags script is configured with different
21 # set of config variables, depending on whether it
22 # is to be installed or not.
24 ifeq "$(INSTALLING)" "1"
26 SCRIPT_PREFIX_FILES += prefix.txt
28 TOP_PWD := $(FPTOOLS_TOP_ABS)
29 HSP_IMPORTS:="$(TOP_PWD)/ghc/lib/ghc":"$(TOP_PWD)/ghc/lib/required":"$(TOP_PWD)/ghc/lib/glaExts":"$(TOP_PWD)/ghc/lib/concurrent"
30 SCRIPT_SUBST_VARS += HSP_IMPORTS
34 # no INTERP: do *not* want #! script stuck on the front
36 # what's the deal? I'll add it for now (and perhaps pay for it later :-)
43 INSTALL_SCRIPTS+=$(SCRIPT_PROG)
44 INSTALL_LIBEXECS=$(C_PROG)
47 # Before really installing the script, we have to
48 # reconfigure it such that the paths it refers to,
49 # point to the installed utils.
53 @$(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
55 include $(TOP)/mk/target.mk
58 # Hack to re-create the in-situ build tree script after
59 # having just installed it.
63 @$(MAKE) $(MFLAGS) $(SCRIPT_PROG)