summaryrefslogtreecommitdiff
path: root/utils/unlit/ghc.mk
blob: 0560aa57b823dee62f4696fae61a05ab069971a8 (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
# -----------------------------------------------------------------------------
#
# (c) 2009 The University of Glasgow
#
# This file is part of the GHC build system.
#
# To understand how the build system works and how to modify it, see
#      http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture
#      http://ghc.haskell.org/trac/ghc/wiki/Building/Modifying
#
# -----------------------------------------------------------------------------

# built by ghc-stage0
utils/unlit_dist_C_SRCS  = unlit.c fs.c
utils/unlit_dist_PROGNAME = unlit
utils/unlit_dist_TOPDIR  = YES
utils/unlit_dist_INSTALL_INPLACE = YES

# built by ghc-stage1
utils/unlit_dist-install_C_SRCS = $(utils/unlit_dist_C_SRCS)
utils/unlit_dist-install_PROGNAME = $(utils/unlit_dist_PROGNAME)
utils/unlit_dist-install_TOPDIR = $(utils/unlit_dist_TOPDIR)
utils/unlit_dist-install_INSTALL_INPLACE = NO

ifeq "$(Stage1Only)" "YES"
utils/unlit_dist_INSTALL         = YES
utils/unlit_dist-install_INSTALL = NO
else
utils/unlit_dist_INSTALL         = NO
utils/unlit_dist-install_INSTALL = YES
endif

$(eval $(call build-prog,utils/unlit,dist,0))
$(eval $(call build-prog,utils/unlit,dist-install,1))