summaryrefslogtreecommitdiffstats
path: root/rules/automake-1.7.6.make
blob: f0a8230a775121e7ee18043cdda9012f70d93727 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 by Marc Kleine-Budde <kleine-budde.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.
#

#
# Paths and names
#
AUTOMAKE176_VERSION	= 1.7.6
AUTOMAKE176		= automake-$(AUTOMAKE176_VERSION)
AUTOMAKE176_SUFFIX	= tar.bz2
AUTOMAKE176_URL		= http://ftp.gwdg.de/pub/gnu/automake/$(AUTOMAKE176).$(AUTOMAKE176_SUFFIX)
AUTOMAKE176_SOURCE	= $(SRCDIR)/$(AUTOMAKE176).$(AUTOMAKE176_SUFFIX)
AUTOMAKE176_DIR		= $(BUILDDIR)/$(AUTOMAKE176)

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

automake176_get: $(STATEDIR)/automake176.get

automake176_get_deps	=  $(AUTOMAKE176_SOURCE)

$(STATEDIR)/automake176.get: $(automake176_get_deps)
	@$(call targetinfo, $@)
	touch $@

$(AUTOMAKE176_SOURCE):
	@$(call targetinfo, $@)
	@$(call get, $(AUTOMAKE176_URL))

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

automake176_extract: $(STATEDIR)/automake176.extract

automake176_extract_deps	=  $(STATEDIR)/automake176.get

$(STATEDIR)/automake176.extract: $(automake176_extract_deps)
	@$(call targetinfo, $@)
	@$(call clean, $(AUTOMAKE176_DIR))
	@$(call extract, $(AUTOMAKE176_SOURCE))
	touch $@

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

automake176_prepare: $(STATEDIR)/automake176.prepare

#
# dependencies
#
automake176_prepare_deps =  \
	$(STATEDIR)/autoconf257.install \
	$(STATEDIR)/automake176.extract

AUTOMAKE176_PATH	=  PATH=$(PTXCONF_PREFIX)/$(AUTOCONF257)/bin:$(CROSS_PATH)

#
# autoconf
#
AUTOMAKE176_AUTOCONF	=  --prefix=$(PTXCONF_PREFIX)/$(AUTOMAKE176)

$(STATEDIR)/automake176.prepare: $(automake176_prepare_deps)
	@$(call targetinfo, $@)
	@$(call clean, $(AUTOMAKE176_BUILDDIR))
	cd $(AUTOMAKE176_DIR) && \
		$(AUTOMAKE176_PATH) \
		./configure $(AUTOMAKE176_AUTOCONF)
	touch $@

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

automake176_compile: $(STATEDIR)/automake176.compile

automake176_compile_deps =  $(STATEDIR)/automake176.prepare

$(STATEDIR)/automake176.compile: $(automake176_compile_deps)
	@$(call targetinfo, $@)
	$(AUTOMAKE176_PATH) make -C $(AUTOMAKE176_DIR)
	touch $@

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

automake176_install: $(STATEDIR)/automake176.install

$(STATEDIR)/automake176.install: $(STATEDIR)/automake176.compile
	@$(call targetinfo, $@)
	$(AUTOMAKE176_PATH) make -C $(AUTOMAKE176_DIR) install
	touch $@

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

automake176_targetinstall: $(STATEDIR)/automake176.targetinstall

automake176_targetinstall_deps	=

$(STATEDIR)/automake176.targetinstall: $(automake176_targetinstall_deps)
	@$(call targetinfo, $@)
	touch $@

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

automake176_clean:
	rm -rf $(STATEDIR)/automake176.*
	rm -rf $(AUTOMAKE176_DIR)

# vim: syntax=make