summaryrefslogtreecommitdiffstats
path: root/rules/automake-1.5.make
blob: 33567bbf40a63321edb9df78aba64391bdf41db1 (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: automake-1.5.make,v 1.2 2003/10/23 15:01:19 mkl Exp $
#
# 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
#
AUTOMAKE15_VERSION	= 1.5
AUTOMAKE15		= automake-$(AUTOMAKE15_VERSION)
AUTOMAKE15_SUFFIX	= tar.gz
AUTOMAKE15_URL		= http://ftp.gwdg.de/pub/gnu/automake/$(AUTOMAKE15).$(AUTOMAKE15_SUFFIX)
AUTOMAKE15_SOURCE	= $(SRCDIR)/$(AUTOMAKE15).$(AUTOMAKE15_SUFFIX)
AUTOMAKE15_DIR		= $(BUILDDIR)/$(AUTOMAKE15)

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

automake15_get: $(STATEDIR)/automake15.get

automake15_get_deps	=  $(AUTOMAKE15_SOURCE)

$(STATEDIR)/automake15.get: $(automake15_get_deps)
	@$(call targetinfo, $@)
	touch $@

$(AUTOMAKE15_SOURCE):
	@$(call targetinfo, $@)
	@$(call get, $(AUTOMAKE15_URL))

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

automake15_extract: $(STATEDIR)/automake15.extract

automake15_extract_deps	=  $(STATEDIR)/automake15.get

$(STATEDIR)/automake15.extract: $(automake15_extract_deps)
	@$(call targetinfo, $@)
	@$(call clean, $(AUTOMAKE15_DIR))
	@$(call extract, $(AUTOMAKE15_SOURCE))
	touch $@

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

automake15_prepare: $(STATEDIR)/automake15.prepare

#
# dependencies
#
automake15_prepare_deps =  \
	$(STATEDIR)/autoconf257.install \
	$(STATEDIR)/automake15.extract

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

#
# autoconf
#
AUTOMAKE15_AUTOCONF	=  --prefix=$(PTXCONF_PREFIX)/$(AUTOMAKE15)

$(STATEDIR)/automake15.prepare: $(automake15_prepare_deps)
	@$(call targetinfo, $@)
	@$(call clean, $(AUTOMAKE15_BUILDDIR))
	cd $(AUTOMAKE15_DIR) && \
		$(AUTOMAKE15_PATH) \
		./configure $(AUTOMAKE15_AUTOCONF)
	touch $@

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

automake15_compile: $(STATEDIR)/automake15.compile

automake15_compile_deps =  $(STATEDIR)/automake15.prepare

$(STATEDIR)/automake15.compile: $(automake15_compile_deps)
	@$(call targetinfo, $@)
	$(AUTOMAKE15_PATH) make -C $(AUTOMAKE15_DIR)
	touch $@

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

automake15_install: $(STATEDIR)/automake15.install

$(STATEDIR)/automake15.install: $(STATEDIR)/automake15.compile
	@$(call targetinfo, $@)
	$(AUTOMAKE15_PATH) make -C $(AUTOMAKE15_DIR) install
	touch $@

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

automake15_targetinstall: $(STATEDIR)/automake15.targetinstall

automake15_targetinstall_deps	=

$(STATEDIR)/automake15.targetinstall: $(automake15_targetinstall_deps)
	@$(call targetinfo, $@)
	touch $@

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

automake15_clean:
	rm -rf $(STATEDIR)/automake15.*
	rm -rf $(AUTOMAKE15_DIR)

# vim: syntax=make