Makefile revision 0a44ef6d9afbfe052a7e975f55ea0d2954b62a82
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER START
f0aad5341752aefe5059832f6cf3abc3283c6e16Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# If applicable, add the following below this CDDL HEADER, with the
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Use is subject to license terms.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# ident "%Z%%M% %I% %E% SMI"
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ./Makefile.lp
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsSUBDIRS = filter crontab terminfo lib cmd model
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMSGSUBDIRS = filter lib cmd model
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserROOTDIRS = \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTLIBLP) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTLIBLP)/bin \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTLIBLP)/model \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTLIBLPLOCL) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTLIB)/print \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(LPOWNSDIRS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserLPOWNSDIRS = \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTETCLP) \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTETCLP)/classes \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTETCLP)/forms \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(ROOTETCLP)/interfaces \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTETCLP)/printers \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTETCLP)/pwheels \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTETCLP)/ppd \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTVAR)/lp \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(ROOTVAR)/lp/logs \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTVARSP)/lp \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTVARSP)/lp/admins \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTVARSP)/lp/requests \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(ROOTVARSP)/lp/system
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSYMDIR1 = $(ROOTVARSP)/lp/admins/lp
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSYMDIR2 = $(ROOTVARSP)/lp/bin
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSYMDIR3 = $(ROOTVARSP)/lp/logs
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSYMDIR4 = $(ROOTETCLP)/logs
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSYMDIR5 = $(ROOTVARSP)/lp/model
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(SYMDIR1) := SYMLNKDEST = ../../../../etc/lp
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(SYMDIR2) := SYMLNKDEST = ../../../usr/lib/lp/bin
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(SYMDIR3) := SYMLNKDEST = ../../lp/logs
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(SYMDIR4) := SYMLNKDEST = ../../var/lp/logs
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(SYMDIR5) := SYMLNKDEST = ../../../usr/lib/lp/model
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserROOTSYMLINKDIRS = $(SYMDIR1) $(SYMDIR2) $(SYMDIR3) $(SYMDIR4) $(SYMDIR5)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTVAR)/lp := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTVAR)/lp/logs := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTETCLP) := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTETCLP)/classes := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTETCLP)/forms := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTETCLP)/interfaces := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTETCLP)/printers := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTETCLP)/pwheels := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTETCLP)/ppd := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTVARSP)/lp := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTVARSP)/lp/admins := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTVARSP)/lp/requests := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTVARSP)/lp/system := DIRMODE = 775
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(LPOWNSDIRS) := OWNER = lp
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(LPOWNSDIRS) := GROUP = lp
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTLIB)/print := DIRMODE = 0755
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserPOFILE= lp.po
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserPOFILES= lp_*.po
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews.KEEP_STATE:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntall: $(TXTS) $(SUBDIRS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Each message catalog file is generated in each sub
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# directory and copied to the usr/src/cmd/lp/ directory.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# Those message catalog files are consolidated into one
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# message catalog file. The consolidated one will be copied
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews_msg: $(MSGDOMAINPOFILE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
d71e2e0c61df16ff37c9934c371a4a60c08974f7Mark Andrews$(POFILE): $(MSGSUBDIRS) pofile_POFILES
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinstall: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsclean strip lint: $(SUBDIRS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userclobber: $(SUBDIRS) local_clobber
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntlocal_clobber:
03c0efc6892ef2ed17338b2ecbb2c5f23fbad0c9Tinderbox User $(RM) $(CLOBBERFILES)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
d8620c7234281056fdfd2ee40cf16636b8281092Tinderbox User$(ROOTDIRS) :
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(INS.dir)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User$(ROOTSYMLINKDIRS) :
b49958b502ee45022010a0b1bed3968f598895a4Automatic Updater -$(RM) $@; $(SYMLINK) $(SYMLNKDEST) $@
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews$(SUBDIRS): FRC
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User @cd $@; pwd; $(MAKE) $(TARGET)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntFRC:
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude $(SRC)/Makefile.msg.targ
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews