2 include $(TOP)/mk/boilerplate.mk
9 SCRIPT_OBJS=stat2resid.prl
12 # Could be overridden from the cmd line (see install rule below).
16 ifneq "$(BIN_DIST)" "1"
17 SCRIPT_SUBST_VARS=DEFAULT_TMPDIR
23 # The stat2resid script is configured with a different
24 # path to the supporting perl scripts, depending on whether it
25 # is to be installed or not.
27 ifeq "$(INSTALLING)" "1"
28 ifeq "$(BIN_DIST)" "1"
29 SCRIPT_PREFIX_FILES += prefix.txt
36 INSTALL_LIBS += $(DYN_LOADABLE_BITS)
37 INSTALL_SCRIPTS += $(SCRIPT_PROG)
41 # Before really installing the script, we have to
42 # reconfigure it such that the paths it refers to,
43 # point to the installed utils.
47 $(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
49 include $(TOP)/mk/target.mk
51 # Hack to re-create the in-situ build tree script after
52 # having just installed it.
56 @$(MAKE) $(MFLAGS) $(SCRIPT_PROG)