remove empty dir
[ghc-hetmet.git] / utils / prof / Makefile
1 TOP=../..
2 include $(TOP)/mk/boilerplate.mk
3
4 INSTALLING=1
5
6 ifeq "$(INSTALLING)" "1"
7 SUBDIRS = cgprof icons
8 endif
9
10 SCRIPT_SUBST_VARS= \
11  FPTOOLS_TOP_ABS \
12  INSTALLING \
13  DEFAULT_TMPDIR \
14  TARGETPLATFORM
15
16 INSTALLED_SCRIPT_PROG  = ghcprof
17 INPLACE_SCRIPT_PROG    = ghcprof-inplace
18
19 ifeq "$(INSTALLING)" "1"
20 SCRIPT_PROG     =  $(INSTALLED_SCRIPT_PROG)
21 else
22 SCRIPT_PROG     =  $(INPLACE_SCRIPT_PROG)
23 endif
24
25 ifneq "$(BIN_DIST)" "1"
26 SCRIPT_SUBST_VARS += libdir libexecdir
27 endif
28
29 # don't recurse on 'make install'
30 #
31 ifeq "$(INSTALLING)" "1"
32 all clean distclean mostlyclean maintainer-clean ::
33         $(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@
34 endif
35
36 INTERP          = perl
37 SCRIPT_OBJS     = ghcprof.prl
38 INSTALL_SCRIPTS += $(SCRIPT_PROG)
39
40 include $(TOP)/mk/target.mk