1 #-----------------------------------------------------------------------------
2 # $Id: Makefile,v 1.5 2000/09/05 10:16:41 simonmar Exp $
4 # (c) The GHC Team, 2000
8 include $(TOP)/mk/boilerplate.mk
12 ifeq "$(INSTALLING)" "1"
13 SUBDIRS = cgprof icons
22 INSTALLED_SCRIPT_PROG = ghcprof
23 INPLACE_SCRIPT_PROG = ghcprof-inplace
25 ifeq "$(INSTALLING)" "1"
26 SCRIPT_PROG = $(INSTALLED_SCRIPT_PROG)
28 SCRIPT_PROG = $(INPLACE_SCRIPT_PROG)
31 ifneq "$(BIN_DIST)" "1"
32 SCRIPT_SUBST_VARS += libdir libexecdir
35 # don't recurse on 'make install'
37 ifeq "$(INSTALLING)" "1"
38 all clean distclean mostlyclean maintainer-clean ::
39 $(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@
43 SCRIPT_OBJS = ghcprof.prl
44 INSTALL_SCRIPTS += $(SCRIPT_PROG)
46 include $(TOP)/mk/target.mk