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
19 ifneq "$(BIN_DIST)" "1"
20 SCRIPT_SUBST_VARS += libdir libexecdir DEFAULT_TMPDIR
24 # The hstags script is configured with different
25 # set of config variables, depending on whether it
26 # is to be installed or not.
28 ifeq "$(INSTALLING)" "1"
30 ifeq "$(BIN_DIST)" "1"
31 SCRIPT_PREFIX_FILES += prefix.txt
34 TOP_PWD := $(FPTOOLS_TOP_ABS)
35 HSP_IMPORTS:="$(TOP_PWD)/ghc/lib/ghc":"$(TOP_PWD)/ghc/lib/required":"$(TOP_PWD)/ghc/lib/glaExts":"$(TOP_PWD)/ghc/lib/concurrent"
36 SCRIPT_SUBST_VARS += HSP_IMPORTS
40 # no INTERP: do *not* want #! script stuck on the front
42 # what's the deal? I'll add it for now (and perhaps pay for it later :-)
49 INSTALL_SCRIPTS+=$(SCRIPT_PROG)
50 INSTALL_LIBEXECS=$(C_PROG)
53 # Before really installing the script, we have to
54 # reconfigure it such that the paths it refers to,
55 # point to the installed utils.
59 @$(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
61 include $(TOP)/mk/target.mk
64 # Hack to re-create the in-situ build tree script after
65 # having just installed it.
69 @$(MAKE) $(MFLAGS) BIN_DIST=0 $(SCRIPT_PROG)