xref: /illumos-gate/usr/src/lib/print/Makefile (revision c686756220120076a07be0dcce54be698101a3d1)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include $(SRC)/Makefile.master
27
28SUBDIRS = \
29	libprint \
30	libpapi-common \
31	libpapi-dynamic \
32	libpapi-lpd \
33	libipp-core \
34	libhttp-core \
35	libpapi-ipp \
36	libipp-listener
37
38all :=                  TARGET = all
39clean :=                TARGET = clean
40clobber :=              TARGET = clobber
41install :=              TARGET = install
42install_h :=              TARGET = install_h
43
44TEXT_DOMAIN=	SUNW_OST_OSLIB
45POFILE= print-lib.po
46
47.KEEP_STATE:
48
49all:	$(TXTS) $(SUBDIRS)
50
51#
52# Each message catalog file is generated in each sub
53# directory and copied to the usr/src/cmd/lp/ directory.
54# Those message catalog files are consolidated into one
55# message catalog file.  The consolidated one will be copied
56# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory.
57#
58
59_msg:	$(MSGDOMAIN)
60	@$(RM) $(POFILE)
61	$(XGETTEXT) -s `/bin/find . -type d -name SCCS -prune -o -type f -name '*.c' -print`
62	@/bin/cat messages.po | sed '/domain/d' > $(POFILE)
63	@$(RM) messages.po
64	$(RM)  $(MSGDOMAIN)/$(POFILE)
65	/bin/cp $(POFILE) $(MSGDOMAIN)
66
67install: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS)
68
69install_h clean strip: $(SUBDIRS)
70
71clobber: $(SUBDIRS) local_clobber
72
73local_clobber:
74	$(RM) $(CLOBBERFILES) $(POFILE)
75
76$(SUBDIRS):	FRC
77	@cd $@; pwd; $(MAKE) $(TARGET)
78
79FRC:
80
81include $(SRC)/Makefile.msg.targ
82
83# Dependencies
84libpapi-dynamic:	libpapi-common
85libpapi-lpd:		libpapi-dynamic
86libipp-core:		libpapi-common
87libpapi-ipp:		libpapi-common libipp-core libhttp-core
88libipp-listener:	libpapi-dynamic libipp-core
89