summaryrefslogtreecommitdiffstats
path: root/rules/template-patch-xchain
blob: 3f0466fadb3c28a2f2f39a131b2f9c7172aece3d (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
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 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
#
@PACKET@_PATCHES-$(PTXCONF_@PACKET_NAME@_@PATCH@) += @packet@-@patch@

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

@packet@-@patch@_get: $(STATEDIR)/@packet@-@patch@.get

@packet@-@patch@_get_deps = \
	$(STATEDIR)/@packet_name@-@patch@.get

$(STATEDIR)/@packet@-@patch@.get: $(@packet@-@patch@_get_deps)
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

@packet@-@patch@_install: $(STATEDIR)/@packet@-@patch@.install

$(STATEDIR)/@packet@-@patch@.install: $(STATEDIR)/@packet@-@patch@.get
	@$(call targetinfo, $@)
	@$(call patch_apply, $(@PACKET_NAME@_@PATCH@_SOURCE), $(@PACKET@_BUILDDIR))
	@$(call touch, $@)

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

@packet@-@patch@_clean:
	rm -rf $(STATEDIR)/@packet@*

# vim: syntax=make