summaryrefslogtreecommitdiffstats
path: root/rules/virtual-libc.make
blob: 01643e5ad4d1cc843f0aa483ce75724167ba24f4 (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
# -*-makefile-*-
# $Id$
#
# Copyright (C) 2003 by Marc Kleine-Budde <kleine-budde@gmx.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
#
VIRTUAL += virtual-libc

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

virtual-libc_install: $(STATEDIR)/virtual-libc.install

ifdef PTXCONF_GLIBC
virtual-libc_install_deps = $(STATEDIR)/glibc.install
endif 
ifdef PTXCONF_UCLIBC
virtual-libc_install_deps = $(STATEDIR)/uclibc.install
endif 

$(STATEDIR)/virtual-libc.install: $(virtual-libc_install_deps)
	@$(call targetinfo, $@)
	@$(call touch, $@)

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

virtual-libc_targetinstall: $(STATEDIR)/virtual-libc.targetinstall

ifdef PTXCONF_GLIBC
virtual-libc_targetinstall_deps = $(STATEDIR)/glibc.targetinstall
endif 
ifdef PTXCONF_UCLIBC
virtual-libc_targetinstall_deps = $(STATEDIR)/uclibc.targetinstall
endif 

$(STATEDIR)/virtual-libc.targetinstall: $(virtual-libc_targetinstall_deps)
	@$(call targetinfo, $@)
	@$(call touch, $@)