10Sstevel@tonic-gate# 20Sstevel@tonic-gate# CDDL HEADER START 30Sstevel@tonic-gate# 40Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*2264Sjacobs# Common Development and Distribution License (the "License"). 6*2264Sjacobs# You may not use this file except in compliance with the License. 70Sstevel@tonic-gate# 80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate# See the License for the specific language governing permissions 110Sstevel@tonic-gate# and limitations under the License. 120Sstevel@tonic-gate# 130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate# 190Sstevel@tonic-gate# CDDL HEADER END 200Sstevel@tonic-gate# 210Sstevel@tonic-gate# 22*2264Sjacobs# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 230Sstevel@tonic-gate# Use is subject to license terms. 240Sstevel@tonic-gate# 250Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 260Sstevel@tonic-gate# 27*2264Sjacobs 28*2264SjacobsSUBDIRS = \ 29*2264Sjacobs libprint \ 30*2264Sjacobs libpapi-common \ 31*2264Sjacobs libpapi-dynamic \ 32*2264Sjacobs libpapi-lpd \ 33*2264Sjacobs libipp-core \ 34*2264Sjacobs libhttp-core \ 35*2264Sjacobs libpapi-ipp \ 36*2264Sjacobs libipp-listener \ 37*2264Sjacobs mod_ipp 38*2264Sjacobs 39*2264Sjacobsall := TARGET = all 40*2264Sjacobsclean := TARGET = clean 41*2264Sjacobsclobber := TARGET = clobber 42*2264Sjacobsinstall := TARGET = install 43*2264Sjacobsinstall_h := TARGET = install_h 44*2264Sjacobslint := TARGET = lint 45*2264Sjacobs 46*2264Sjacobsinclude $(SRC)/Makefile.master 47*2264Sjacobs 48*2264SjacobsTEXT_DOMAIN= SUNW_OST_OSLIB 49*2264SjacobsPOFILE= print-lib.po 50*2264Sjacobs 51*2264Sjacobs.KEEP_STATE: 52*2264Sjacobs 53*2264Sjacobsall: $(TXTS) $(SUBDIRS) 54*2264Sjacobs 55*2264Sjacobs# 56*2264Sjacobs# Each message catalog file is generated in each sub 57*2264Sjacobs# directory and copied to the usr/src/cmd/lp/ directory. 58*2264Sjacobs# Those message catalog files are consolidated into one 59*2264Sjacobs# message catalog file. The consolidated one will be copied 60*2264Sjacobs# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory. 610Sstevel@tonic-gate# 620Sstevel@tonic-gate 63*2264Sjacobs_msg: $(MSGDOMAIN) 64*2264Sjacobs @$(RM) $(POFILE) 65*2264Sjacobs $(XGETTEXT) -s `/bin/find . -type d -name SCCS -prune -o -type f -name '*.c' -print` 66*2264Sjacobs @/bin/cat messages.po | sed '/domain/d' > $(POFILE) 67*2264Sjacobs @$(RM) messages.po 68*2264Sjacobs $(RM) $(MSGDOMAIN)/$(POFILE) 69*2264Sjacobs /bin/cp $(POFILE) $(MSGDOMAIN) 700Sstevel@tonic-gate 71*2264Sjacobsinstall: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS) 720Sstevel@tonic-gate 73*2264Sjacobsinstall_h clean strip lint: $(SUBDIRS) 740Sstevel@tonic-gate 75*2264Sjacobsclobber: $(SUBDIRS) local_clobber 760Sstevel@tonic-gate 77*2264Sjacobslocal_clobber: 78*2264Sjacobs $(RM) $(CLOBBERFILES) $(POFILE) 790Sstevel@tonic-gate 80*2264Sjacobs$(SUBDIRS): FRC 81*2264Sjacobs @cd $@; pwd; $(MAKE) $(TARGET) 82*2264Sjacobs 83*2264SjacobsFRC: 840Sstevel@tonic-gate 85*2264Sjacobsinclude $(SRC)/Makefile.msg.targ 860Sstevel@tonic-gate 87*2264Sjacobs# Dependencies 88*2264Sjacobslibpapi-dynamic: libpapi-common 89*2264Sjacobslibpapi-lpd: libpapi-dynamic 90*2264Sjacobslibipp-core: libpapi-common 91*2264Sjacobslibpapi-ipp: libpapi-common libipp-core libhttp-core 92*2264Sjacobslibipp-listener: libpapi-dynamic libipp-core 93*2264Sjacobsmod_ipp: libipp-listener 940Sstevel@tonic-gate 95