17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5355b4669Sjacobs# Common Development and Distribution License (the "License"). 6355b4669Sjacobs# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 217c478bd9Sstevel@tonic-gate# 22355b4669Sjacobs# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 247c478bd9Sstevel@tonic-gate# 2514c3be39SGordon Ross 2614c3be39SGordon Rossinclude $(SRC)/Makefile.master 277c478bd9Sstevel@tonic-gate 28355b4669SjacobsSUBDIRS = \ 29355b4669Sjacobs libprint \ 30355b4669Sjacobs libpapi-common \ 31355b4669Sjacobs libpapi-dynamic \ 32355b4669Sjacobs libpapi-lpd \ 33355b4669Sjacobs libipp-core \ 34355b4669Sjacobs libhttp-core \ 35355b4669Sjacobs libpapi-ipp \ 3614c3be39SGordon Ross libipp-listener 3714c3be39SGordon Ross 38355b4669Sjacobsall := TARGET = all 39355b4669Sjacobsclean := TARGET = clean 40355b4669Sjacobsclobber := TARGET = clobber 41355b4669Sjacobsinstall := TARGET = install 42355b4669Sjacobsinstall_h := TARGET = install_h 437c478bd9Sstevel@tonic-gate 44355b4669SjacobsTEXT_DOMAIN= SUNW_OST_OSLIB 45355b4669SjacobsPOFILE= print-lib.po 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gate.KEEP_STATE: 487c478bd9Sstevel@tonic-gate 49355b4669Sjacobsall: $(TXTS) $(SUBDIRS) 507c478bd9Sstevel@tonic-gate 51355b4669Sjacobs# 52355b4669Sjacobs# Each message catalog file is generated in each sub 53355b4669Sjacobs# directory and copied to the usr/src/cmd/lp/ directory. 54355b4669Sjacobs# Those message catalog files are consolidated into one 55355b4669Sjacobs# message catalog file. The consolidated one will be copied 56355b4669Sjacobs# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory. 57355b4669Sjacobs# 587c478bd9Sstevel@tonic-gate 59355b4669Sjacobs_msg: $(MSGDOMAIN) 60355b4669Sjacobs @$(RM) $(POFILE) 61355b4669Sjacobs $(XGETTEXT) -s `/bin/find . -type d -name SCCS -prune -o -type f -name '*.c' -print` 62355b4669Sjacobs @/bin/cat messages.po | sed '/domain/d' > $(POFILE) 63355b4669Sjacobs @$(RM) messages.po 64355b4669Sjacobs $(RM) $(MSGDOMAIN)/$(POFILE) 65355b4669Sjacobs /bin/cp $(POFILE) $(MSGDOMAIN) 667c478bd9Sstevel@tonic-gate 67355b4669Sjacobsinstall: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS) 687c478bd9Sstevel@tonic-gate 69*241c90a0SRichard Loweinstall_h clean strip: $(SUBDIRS) 707c478bd9Sstevel@tonic-gate 71355b4669Sjacobsclobber: $(SUBDIRS) local_clobber 727c478bd9Sstevel@tonic-gate 73355b4669Sjacobslocal_clobber: 74355b4669Sjacobs $(RM) $(CLOBBERFILES) $(POFILE) 757c478bd9Sstevel@tonic-gate 76355b4669Sjacobs$(SUBDIRS): FRC 77355b4669Sjacobs @cd $@; pwd; $(MAKE) $(TARGET) 787c478bd9Sstevel@tonic-gate 79355b4669SjacobsFRC: 807c478bd9Sstevel@tonic-gate 81355b4669Sjacobsinclude $(SRC)/Makefile.msg.targ 827c478bd9Sstevel@tonic-gate 83355b4669Sjacobs# Dependencies 84355b4669Sjacobslibpapi-dynamic: libpapi-common 85355b4669Sjacobslibpapi-lpd: libpapi-dynamic 86355b4669Sjacobslibipp-core: libpapi-common 87355b4669Sjacobslibpapi-ipp: libpapi-common libipp-core libhttp-core 88355b4669Sjacobslibipp-listener: libpapi-dynamic libipp-core 89