1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.11 2000/09/05 10:16:41 simonmar Exp $
5 include $(TOP)/mk/boilerplate.mk
11 SCRIPT_PROG=stat2resid
12 SCRIPT_OBJS=stat2resid.prl
15 # Could be overridden from the cmd line (see install rule below).
19 ifneq "$(BIN_DIST)" "1"
20 SCRIPT_SUBST_VARS=DEFAULT_TMPDIR
26 # The stat2resid script is configured with a different
27 # path to the supporting perl scripts, depending on whether it
28 # is to be installed or not.
30 ifeq "$(INSTALLING)" "1"
31 ifeq "$(BIN_DIST)" "1"
32 SCRIPT_PREFIX_FILES += prefix.txt
39 INSTALL_LIBS += $(DYN_LOADABLE_BITS)
40 INSTALL_SCRIPTS += $(SCRIPT_PROG)
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 include $(TOP)/mk/target.mk
54 # Hack to re-create the in-situ build tree script after
55 # having just installed it.
59 @$(MAKE) $(MFLAGS) $(SCRIPT_PROG)