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
|
# -*-makefile-*-
# $Id$
#
# Copyright (C) @YEAR@ by @AUTHOR@
#
# 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
#
PACKAGES-$(PTXCONF_@PACKET@) += @packet@
# ----------------------------------------------------------------------------
# Get
# ----------------------------------------------------------------------------
@packet@_get: $(STATEDIR)/@packet@.get
$(STATEDIR)/@packet@.get: $(@packet@_get_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Extract
# ----------------------------------------------------------------------------
@packet@_extract: $(STATEDIR)/@packet@.extract
$(STATEDIR)/@packet@.extract: $(@packet@_extract_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
@packet@_prepare: $(STATEDIR)/@packet@.prepare
$(STATEDIR)/@packet@.prepare: $(@packet@_prepare_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Compile
# ----------------------------------------------------------------------------
@packet@_compile: $(STATEDIR)/@packet@.compile
$(STATEDIR)/@packet@.compile: $(@packet@_compile_deps_default)
@$(call targetinfo, $@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Install
# ----------------------------------------------------------------------------
@packet@_install: $(STATEDIR)/@packet@.install
$(STATEDIR)/@packet@.install: $(@packet@_install_deps_default)
@$(call targetinfo, $@)
#
# TODO: For files that are required at compiletime (headers, libs to link against)
# you can copy these files to the active project local/ directory
# Use macro $(PTXCONF_PREFIX) for host files and $(PTXCONF_GNU_TARGET)
# for target files
#
# Example for a host header file:
# @cp friesel.h $(PTXCONF_PREFIX)/include
# Example for a host library file:
# @cp friesel.so $(PTXCONF_PREFIX)/lib
# Example for a target file:
# @cp frasel.h $$(PTXCONF_GNU_TARGET)/include
# Example for a target library file:
# @cp frasel.so $(PTXCONF_GNU_TARGET)/lib
#
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
@packet@_targetinstall: $(STATEDIR)/@packet@.targetinstall
$(STATEDIR)/@packet@.targetinstall: $(@packet@_targetinstall_deps_default)
@$(call targetinfo, $@)
#
# TODO: To build your own packet, if this step requires one
# @$(call install_init, @packet@)
# @$(call install_fixup,@packet@,PACKAGE,@packet@)
# @$(call install_fixup,@packet@,PRIORITY,optional)
# @$(call install_fixup,@packet@,VERSION,0)
# @$(call install_fixup,@packet@,SECTION,base)
# @$(call install_fixup,@packet@,AUTHOR,"@AUTHOR@")
# @$(call install_fixup,@packet@,DEPENDS,)
# @$(call install_fixup,@packet@,DESCRIPTION,missing)
#
# TODO: Add here all files that should be copied to the target
# Note: Add everything before(!) call to macro install_finish
#
# @$(call install_copy, @packet@, 0, 0, 0755, $(@PACKET@_DIR)/foobar, /dev/null)
#
# @$(call install_finish,@packet@)
@$(call touch, $@)
# ----------------------------------------------------------------------------
# Clean
# ----------------------------------------------------------------------------
@packet@_clean:
rm -rf $(STATEDIR)/@packet@.*
# vim: syntax=make
|