1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.9 1998/02/04 20:56:24 sof 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=TMPDIR
24 CLEAN_FILES += $(SCRIPT_PROG)
27 # The stat2resid script is configured with a different
28 # path to the supporting perl scripts, depending on whether it
29 # is to be installed or not.
31 ifeq "$(INSTALLING)" "1"
32 ifeq "$(BIN_DIST)" "1"
33 SCRIPT_PREFIX_FILES += prefix.txt
40 INSTALL_LIBS += $(DYN_LOADABLE_BITS)
41 INSTALL_SCRIPTS += $(SCRIPT_PROG)
45 # Before really installing the script, we have to
46 # reconfigure it such that the paths it refers to,
47 # point to the installed utils.
51 $(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
53 include $(TOP)/mk/target.mk
55 # Hack to re-create the in-situ build tree script after
56 # having just installed it.
60 @$(MAKE) $(MFLAGS) $(SCRIPT_PROG)