add Outputable instance for OccIfaceEq
[ghc-hetmet.git] / utils / stat2resid / Makefile
1 TOP=../..
2 include $(TOP)/mk/boilerplate.mk
3
4 DYN_LOADABLE_BITS = \
5         parse-gcstats.prl \
6         process-gcstats.prl
7
8 SCRIPT_PROG=stat2resid
9 SCRIPT_OBJS=stat2resid.prl
10
11 #
12 # Could be overridden from the cmd line (see install rule below).
13 #
14 INSTALLING=0
15
16 INTERP=perl
17
18 #
19 # install setup
20
21 INSTALL_LIBS    += $(DYN_LOADABLE_BITS)
22 INSTALL_SCRIPTS += $(SCRIPT_PROG)
23
24
25 #
26 # Before really installing the script, we have to
27 # reconfigure it such that the paths it refers to,
28 # point to the installed utils.
29 #
30 install ::
31         $(RM) $(SCRIPT_PROG)
32         $(MAKE) $(MFLAGS) INSTALLING=1 $(SCRIPT_PROG)
33
34 include $(TOP)/mk/target.mk
35
36 # Hack to re-create the in-situ build tree script after 
37 # having just installed it.
38 #
39 install ::
40         @$(RM) $(SCRIPT_PROG)
41         @$(MAKE) $(MFLAGS) $(SCRIPT_PROG)