Makefile 947 Bytes
Newer Older
1
#-----------------------------------------------------------------------------
2
# $Id: Makefile,v 1.20 1999/12/08 09:48:33 simonmar Exp $
3

sof's avatar
sof committed
4
5
TOP=../..
include $(TOP)/mk/boilerplate.mk
6
7

INSTALLING=1
sof's avatar
sof committed
8
9
10
11
12

boot :: all

SCRIPT_SUBST_VARS= \
 TOP_PWD \
sof's avatar
sof committed
13
 INSTALLING \
14
 RAWCPP \
sof's avatar
sof committed
15
 HscIfaceFileVersion
16

sof's avatar
sof committed
17
18
INTERP=perl

19
20
INSTALLED_SCRIPT_PROG  = mkdependHS
INPLACE_SCRIPT_PROG    = mkdependHS-inplace
sof's avatar
sof committed
21

22
23
24
25
26
27
ifeq "$(INSTALLING)" "1"
TOP_PWD 	:= $(prefix)
SCRIPT_PROG 	=  $(INSTALLED_SCRIPT_PROG)
else
TOP_PWD 	:= $(FPTOOLS_TOP_ABS)
SCRIPT_PROG 	=  $(INPLACE_SCRIPT_PROG)
sof's avatar
sof committed
28
endif
sof's avatar
sof committed
29

30
SCRIPT_OBJS=mkdependHS.prl
sof's avatar
sof committed
31
32
33

ifeq "$(BIN_DIST)" "1"
SCRIPT_PREFIX_FILES += prefix.txt
34
else
35
SCRIPT_SUBST_VARS += libdir libexecdir datadir TMPDIR SED
sof's avatar
sof committed
36
endif
sof's avatar
sof committed
37

38
39
# don't recurse on 'make install'
#
sof's avatar
sof committed
40
ifeq "$(INSTALLING)" "1"
41
42
all clean veryclean maintainer-clean ::
	$(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@
sof's avatar
sof committed
43
44
45
endif

#
46
# install setup
sof's avatar
sof committed
47
#
48
INSTALL_LIB_SCRIPTS += $(SCRIPT_PROG)
sof's avatar
sof committed
49
50

include $(TOP)/mk/target.mk