blob: 9d25c843cf5ce753c4ee1fb6a56ba22110466fe4 (
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
|
# -*-makefile-*-
# $Id: addons.make,v 1.2 2003/10/23 15:01:19 mkl Exp $
#
# Copyright (C) 2003 by Robert Schwebel <r.schwebel@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
#
ifdef PTXCONF_ADDONS
PACKAGES += addons
endif
ADDONS_DIR = $(TOPDIR)/addons
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
addons_get: $(STATEDIR)/addons.get
$(STATEDIR)/addons.get:
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
addons_extract: $(STATEDIR)/addons.extract
$(STATEDIR)/addons.extract: $(STATEDIR)/addons.get
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
addons_prepare: $(STATEDIR)/addons.prepare
$(STATEDIR)/addons.prepare: $(STATEDIR)/addons.extract
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
addons_compile: $(STATEDIR)/addons.compile
$(STATEDIR)/addons.compile: $(STATEDIR)/addons.prepare
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
addons_install: $(STATEDIR)/addons.install
$(STATEDIR)/addons.install: $(STATEDIR)/addons.compile
@$(call targetinfo, $@)
touch $@
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
addons_targetinstall: $(STATEDIR)/addons.targetinstall
addons_targetinstall_deps = $(STATEDIR)/addons.compile
$(STATEDIR)/addons.targetinstall: $(addons_targetinstall_deps)
@$(call targetinfo, $@)
@cd $(ROOTDIR) && \
for i in $(ADDONS_DIR)/*.tar.gz; do \
echo "Adding stuff from $$i..."; \
tar -zxf $$i; \
done;
touch $@
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
addons_clean:
rm -rf $(STATEDIR)/addons.*
rm -rf $(ADDONS_DIR)
# vim: syntax=make
|