2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/version.mk
9 SCRIPT_OBJS=mkdependHS.prl
21 INSTALL_LIB_SCRIPTS += $(SCRIPT_PROG)
23 ifneq "$(BIN_DIST)" "1"
24 SCRIPT_SUBST_VARS += libdir datadir TMPDIR SED
29 # Prepend an infomercial if installing (binary-dist or the real thing).
31 ifeq "$(INSTALLING)" "1"
32 ifeq "$(BIN_DIST)" "1"
33 SCRIPT_PREFIX_FILES += prefix.txt
37 ifeq "$(INSTALLING)" "1"
40 TOP_PWD:=$(FPTOOLS_TOP_ABS)
44 # Before really installing the script, we have to
45 # reconfigure it such that the paths it refers to,
46 # point to the installed utils.
50 $(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
52 CLEAN_FILES += $(SCRIPT_PROG) $(SCRIPT_LINK)
54 include $(TOP)/mk/target.mk
57 # Hack to re-create the in-situ build tree script after
58 # having just installed it (if you don't, confusion ensues
59 # if you try to use the build tree copy afterwards..)
63 @$(MAKE) $(MFLAGS) BIN_DIST=0 INSTALLING=0 $(SCRIPT_PROG)