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