summaryrefslogtreecommitdiff
path: root/utils/stat2resid/Makefile
blob: ef9ea2bcb228ef0caaddc35cc95ac4d875cf0bdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
TOP=../..
include $(TOP)/mk/boilerplate.mk

DYN_LOADABLE_BITS = \
	parse-gcstats.prl \
	process-gcstats.prl

SCRIPT_PROG=stat2resid
SCRIPT_OBJS=stat2resid.prl

#
# Could be overridden from the cmd line (see install rule below).
#
INSTALLING=0

INTERP=perl

#
# install setup
# 
INSTALL_LIBS    += $(DYN_LOADABLE_BITS)
INSTALL_SCRIPTS += $(SCRIPT_PROG)


#
# Before really installing the script, we have to
# reconfigure it such that the paths it refers to,
# point to the installed utils.
#
install ::
	$(RM) $(SCRIPT_PROG)
	$(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)

include $(TOP)/mk/target.mk

# Hack to re-create the in-situ build tree script after 
# having just installed it.
#
install ::
	@$(RM) $(SCRIPT_PROG)
	@$(MAKE) $(MFLAGS) $(SCRIPT_PROG)