2 include $(TOP)/mk/boilerplate.mk
3 include $(TOP)/mk/version.mk
9 SCRIPT_OBJS=mkdependHS.prl
19 INSTALL_SCRIPTS += $(SCRIPT_PROG)
21 ifneq "$(BIN_DIST)" "1"
22 SCRIPT_SUBST_VARS += libdir datadir RAWCPP TMPDIR SED
27 # Prepend an infomercial if installing (binary-dist or the real thing).
29 ifeq "$(INSTALLING)" "1"
30 ifeq "$(BIN_DIST)" "1"
31 SCRIPT_PREFIX_FILES += prefix.txt
35 ifeq "$(INSTALLING)" "1"
38 TOP_PWD:=$(FPTOOLS_TOP_ABS)
42 # Before really installing the script, we have to
43 # reconfigure it such that the paths it refers to,
44 # point to the installed utils.
48 $(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
50 CLEAN_FILES += $(SCRIPT_PROG) $(SCRIPT_LINK)
52 include $(TOP)/mk/target.mk
55 # Hack to re-create the in-situ build tree script after
56 # having just installed it (if you don't, confusion ensues
57 # if you try to use the build tree copy afterwards..)
61 @$(MAKE) $(MFLAGS) $(SCRIPT_PROG)