2 include $(TOP)/mk/boilerplate.mk
8 SCRIPT_OBJS=mkdependHS.prl
20 INSTALL_SCRIPTS += $(SCRIPT_PROG)
22 ifneq "$(BIN_DIST)" "1"
23 SCRIPT_SUBST_VARS += libdir datadir RAWCPP SED
28 # Prepend an infomercial if installing (binary-dist or the real thing).
30 ifeq "$(INSTALLING)" "1"
31 ifeq "$(BIN_DIST)" "1"
32 SCRIPT_PREFIX_FILES += prefix.txt
36 ifeq "$(INSTALLING)" "1"
39 TOP_PWD:=$(FPTOOLS_TOP_ABS)
43 # Before really installing the script, we have to
44 # reconfigure it such that the paths it refers to,
45 # point to the installed utils.
49 $(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
51 CLEAN_FILES += $(SCRIPT_PROG)
53 include $(TOP)/mk/target.mk
56 # Hack to re-create the in-situ build tree script after
57 # having just installed it (if you don't, confusion ensues
58 # if you try to use the build tree copy afterwards..)
62 @$(MAKE) $(MFLAGS) $(SCRIPT_PROG)