2 include $(TOP)/mk/boilerplate.mk
10 SCRIPT_OBJS=mkdependHS.prl
22 INSTALL_SCRIPTS += $(SCRIPT_PROG)
24 ifneq "$(BIN_DIST)" "1"
25 SCRIPT_SUBST_VARS += libdir datadir
30 # Prepend an infomercial if installing (binary-dist or the real thing).
32 ifeq "$(INSTALLING)" "1"
33 ifeq "$(BIN_DIST)" "1"
34 SCRIPT_PREFIX_FILES += prefix.txt
38 ifeq "$(INSTALLING)" "1"
41 TOP_PWD:=$(FPTOOLS_TOP_ABS)
45 # Before really installing the script, we have to
46 # reconfigure it such that the paths it refers to,
47 # point to the installed utils.
51 $(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
53 CLEAN_FILES += $(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 (if you don't, confusion ensues
60 # if you try to use the build tree copy afterwards..)
64 @$(MAKE) $(MFLAGS) $(SCRIPT_PROG)