4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
25 # (hopefully) helpful common targets.
28 PROTOMAN1FILES
=$(MAN1FILES
:%=$(PROTOUSRSHAREMAN1DIR
)/%)
29 PROTOMAN1MFILES
=$(MAN1MFILES
:%=$(PROTOUSRSHAREMAN1MDIR
)/%)
30 PROTOMAN3FILES
=$(MAN3FILES
:%=$(PROTOUSRSHAREMAN3DIR
)/%)
31 PROTOMAN4FILES
=$(MAN4FILES
:%=$(PROTOUSRSHAREMAN4DIR
)/%)
33 $(PROTOUSRSHAREMAN1DIR
)/% $(PROTOUSRSHAREMAN1MDIR
)/% $(PROTOUSRSHAREMAN3DIR
)/% \
34 $(PROTOUSRSHAREMAN4DIR
)/%: manpages
/%
37 PROTOSFWLINKS
= $(SFWPROGS
:%=$(PROTOSFWBIN
)/%)
39 $(PROTOSFWLINKS
): $(PROTOSFWBIN
)
40 $(RM
) $@
; $(SYMLINK
) ..
/..
/bin
/$(@F
) $@
42 PROTOSFWMAN1LINKS
= $(SFWMAN1
:%=$(PROTOSFWSHAREMAN1
)/%)
44 $(PROTOSFWMAN1LINKS
): $(PROTOSFWSHAREMAN1
)
45 $(RM
) $@
; $(SYMLINK
) ..
/..
/..
/..
/share
/man
/man1
/$(@F
) $@
47 PROTOGNULINKS
= $(GNUPROGS
:%=$(PROTOGNUBIN
)/%)
49 $(PROTOGNULINKS
): $(PROTOGNUBIN
)
50 $(RM
) $@
; $(SYMLINK
) ..
/..
/bin
/g
$(@F
) $@
52 PROTOGNUMAN1LINKS
= $(GNUMAN1
:%=$(PROTOGNUSHAREMAN1
)/%)
54 $(PROTOGNUMAN1LINKS
): $(PROTOGNUSHAREMAN1
)
55 $(RM
) $@
; $(SYMLINK
) ..
/..
/..
/..
/share
/man
/man1
/g
$(@F
) $@
61 $(PROTOUSRSHAREMAN1DIR
) \
62 $(PROTOUSRSHAREMAN1MDIR
) \
63 $(PROTOUSRSHAREMAN3DIR
) \
64 $(PROTOUSRSHAREMAN4DIR
) \
65 $(PROTOUSRSHAREDOCDIR
) \
67 $(PROTOGNUSHAREMAN1
) \
69 $(PROTOSFWSHAREMAN1
) \
75 $(PROTOMAN1FILES
): $(PROTOUSRSHAREMAN1DIR
)
77 $(PROTOMAN1MFILES
): $(PROTOUSRSHAREMAN1MDIR
)
79 $(PROTOMAN3FILES
): $(PROTOUSRSHAREMAN3DIR
)
81 $(PROTOMAN4FILES
): $(PROTOUSRSHAREMAN4DIR
)