blob: 9d2f64f4180e94e25336bb967884489b1aa942f4 (
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
42
43
44
45
46
47
48
49
50
|
#-----------------------------------------------------------------------------
# $Id: Makefile,v 1.21 2000/04/27 11:04:37 simonmar Exp $
TOP=../..
include $(TOP)/mk/boilerplate.mk
INSTALLING=1
boot :: all
SCRIPT_SUBST_VARS= \
TOP_PWD \
INSTALLING \
RAWCPP \
HscIfaceFileVersion
INTERP=perl
INSTALLED_SCRIPT_PROG = mkdependHS
INPLACE_SCRIPT_PROG = mkdependHS-inplace
ifeq "$(INSTALLING)" "1"
TOP_PWD := $(prefix)
SCRIPT_PROG = $(INSTALLED_SCRIPT_PROG)
else
TOP_PWD := $(FPTOOLS_TOP_ABS)
SCRIPT_PROG = $(INPLACE_SCRIPT_PROG)
endif
SCRIPT_OBJS=mkdependHS.prl
ifeq "$(BIN_DIST)" "1"
SCRIPT_PREFIX_FILES += prefix.txt
else
SCRIPT_SUBST_VARS += libdir libexecdir datadir TMPDIR SED
endif
# don't recurse on 'make install'
#
ifeq "$(INSTALLING)" "1"
all clean distclean mostlyclean maintainer-clean ::
$(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@
endif
#
# install setup
#
INSTALL_LIB_SCRIPTS += $(SCRIPT_PROG)
include $(TOP)/mk/target.mk
|