summaryrefslogtreecommitdiffstats
path: root/rules/host-ncurses.make
blob: 9ed6cf2989e19b65078baff859dc901877e65c2f (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
51
52
53
54
55
56
57
58
59
# -*-makefile-*-
#
# Copyright (C) 2008 by mol@pengutronix.de
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
HOST_PACKAGES-$(PTXCONF_HOST_NCURSES) += host-ncurses

#
# Paths and names
#
HOST_NCURSES_DIR	= $(HOST_BUILDDIR)/$(NCURSES)

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

HOST_NCURSES_PATH	:= PATH=$(HOST_PATH)
HOST_NCURSES_ENV 	:= $(HOST_ENV)

#
# autoconf
#
HOST_NCURSES_AUTOCONF	= \
	$(HOST_AUTOCONF) \
	$(NCURSES_AUTOCONF_SHARED)

# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------

$(STATEDIR)/host-ncurses.compile:
	@$(call targetinfo)
	cd $(HOST_NCURSES_DIR)/include && $(HOST_NCURSES_PATH) \
		$(MAKE)
	cd $(HOST_NCURSES_DIR)/ncurses && $(HOST_NCURSES_PATH) \
		$(MAKE) make_keys make_hash
	@$(call touch)

# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------

$(STATEDIR)/host-ncurses.install:
	@$(call targetinfo)
	install -D -m 755 $(HOST_NCURSES_DIR)/ncurses/make_keys \
		$(HOST_NCURSES_PKGDIR)/bin/make_keys
	install -D -m 755 $(HOST_NCURSES_DIR)/ncurses/make_hash \
		$(HOST_NCURSES_PKGDIR)/bin/make_hash
	@$(call touch)

# vim: syntax=make