summaryrefslogtreecommitdiffstats
path: root/rules/template-patch-xchain
blob: 168982119dd6cd7a2c2eb3c8f1fb1c4d96fa25f0 (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
# -*-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
#
ifdef PTXCONF_@PACKET_NAME@_@PATCH@
@PACKET@_PATCHES += @packet@-@patch@
endif

# ----------------------------------------------------------------------------
# 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, $@)
	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))
	touch $@

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

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

# vim: syntax=make