summaryrefslogtreecommitdiffstats
path: root/rules/host-xcb-proto.make
blob: 540b9251cbe3cbb66142c5e5d252d2ef899fa8b1 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2008 by Robert Schwebel
#
# 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_XCB_PROTO) += host-xcb-proto

#
# Paths and names
#
HOST_XCB_PROTO_DIR	= $(HOST_BUILDDIR)/$(XCB_PROTO)

# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------

$(STATEDIR)/host-xcb-proto.get: $(STATEDIR)/xcb-proto.get
	@$(call targetinfo, $@)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------

$(STATEDIR)/host-xcb-proto.extract:
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_XCB_PROTO_DIR))
	@$(call extract, XCB_PROTO, $(HOST_BUILDDIR))
	@$(call patchin, XCB_PROTO, $(HOST_XCB_PROTO_DIR))
	@$(call touch, $@)

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

HOST_XCB_PROTO_PATH	:= PATH=$(HOST_PATH)
HOST_XCB_PROTO_ENV 	:= $(HOST_ENV)

#
# autoconf
#
HOST_XCB_PROTO_AUTOCONF	:= $(HOST_AUTOCONF)

$(STATEDIR)/host-xcb-proto.prepare:
	@$(call targetinfo, $@)
	@$(call clean, $(HOST_XCB_PROTO_DIR)/config.cache)
	cd $(HOST_XCB_PROTO_DIR) && \
		$(HOST_XCB_PROTO_PATH) $(HOST_XCB_PROTO_ENV) \
		./configure $(HOST_XCB_PROTO_AUTOCONF)
	@$(call touch, $@)

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

$(STATEDIR)/host-xcb-proto.compile:
	@$(call targetinfo, $@)
	cd $(HOST_XCB_PROTO_DIR) && $(HOST_XCB_PROTO_PATH) $(MAKE) $(PARALLELMFLAGS)
	@$(call touch, $@)

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

$(STATEDIR)/host-xcb-proto.install:
	@$(call targetinfo, $@)
	@$(call install, HOST_XCB_PROTO,,h)
	@$(call touch, $@)

# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------

host-xcb-proto_clean:
	rm -rf $(STATEDIR)/host-xcb-proto.*
	rm -rf $(HOST_XCB_PROTO_DIR)

# vim: syntax=make