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# 25*14c3be39SGordon Ross 26*14c3be39SGordon 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 \ 36*14c3be39SGordon Ross libipp-listener 37*14c3be39SGordon Ross 38355b4669Sjacobsall := TARGET = all 39355b4669Sjacobsclean := TARGET = clean 40355b4669Sjacobsclobber := TARGET = clobber 41355b4669Sjacobsinstall := TARGET = install 42355b4669Sjacobsinstall_h := TARGET = install_h 43355b4669Sjacobslint := TARGET = lint 447c478bd9Sstevel@tonic-gate 45355b4669SjacobsTEXT_DOMAIN= SUNW_OST_OSLIB 46355b4669SjacobsPOFILE= print-lib.po 477c478bd9Sstevel@tonic-gate 487c478bd9Sstevel@tonic-gate.KEEP_STATE: 497c478bd9Sstevel@tonic-gate 50355b4669Sjacobsall: $(TXTS) $(SUBDIRS) 517c478bd9Sstevel@tonic-gate 52355b4669Sjacobs# 53355b4669Sjacobs# Each message catalog file is generated in each sub 54355b4669Sjacobs# directory and copied to the usr/src/cmd/lp/ directory. 55355b4669Sjacobs# Those message catalog files are consolidated into one 56355b4669Sjacobs# message catalog file. The consolidated one will be copied 57355b4669Sjacobs# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory. 58355b4669Sjacobs# 597c478bd9Sstevel@tonic-gate 60355b4669Sjacobs_msg: $(MSGDOMAIN) 61355b4669Sjacobs @$(RM) $(POFILE) 62355b4669Sjacobs $(XGETTEXT) -s `/bin/find . -type d -name SCCS -prune -o -type f -name '*.c' -print` 63355b4669Sjacobs @/bin/cat messages.po | sed '/domain/d' > $(POFILE) 64355b4669Sjacobs @$(RM) messages.po 65355b4669Sjacobs $(RM) $(MSGDOMAIN)/$(POFILE) 66355b4669Sjacobs /bin/cp $(POFILE) $(MSGDOMAIN) 677c478bd9Sstevel@tonic-gate 68355b4669Sjacobsinstall: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS) 697c478bd9Sstevel@tonic-gate 70355b4669Sjacobsinstall_h clean strip lint: $(SUBDIRS) 717c478bd9Sstevel@tonic-gate 72355b4669Sjacobsclobber: $(SUBDIRS) local_clobber 737c478bd9Sstevel@tonic-gate 74355b4669Sjacobslocal_clobber: 75355b4669Sjacobs $(RM) $(CLOBBERFILES) $(POFILE) 767c478bd9Sstevel@tonic-gate 77355b4669Sjacobs$(SUBDIRS): FRC 78355b4669Sjacobs @cd $@; pwd; $(MAKE) $(TARGET) 797c478bd9Sstevel@tonic-gate 80355b4669SjacobsFRC: 817c478bd9Sstevel@tonic-gate 82355b4669Sjacobsinclude $(SRC)/Makefile.msg.targ 837c478bd9Sstevel@tonic-gate 84355b4669Sjacobs# Dependencies 85355b4669Sjacobslibpapi-dynamic: libpapi-common 86355b4669Sjacobslibpapi-lpd: libpapi-dynamic 87355b4669Sjacobslibipp-core: libpapi-common 88355b4669Sjacobslibpapi-ipp: libpapi-common libipp-core libhttp-core 89355b4669Sjacobslibipp-listener: libpapi-dynamic libipp-core 90