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 5e2738c5eSjacobs# Common Development and Distribution License (the "License"). 6e2738c5eSjacobs# 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# 21e2738c5eSjacobs 227c478bd9Sstevel@tonic-gate# 23*24fe0b3bSjmcp# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 247c478bd9Sstevel@tonic-gate# Use is subject to license terms. 257c478bd9Sstevel@tonic-gate# 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gateinclude ./Makefile.lp 287c478bd9Sstevel@tonic-gate 29e2738c5eSjacobsSUBDIRS = filter crontab terminfo lib cmd model 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gateMSGSUBDIRS = filter lib cmd model 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gateROOTDIRS = \ 347c478bd9Sstevel@tonic-gate $(ROOTLIBLP) \ 357c478bd9Sstevel@tonic-gate $(ROOTLIBLP)/bin \ 367c478bd9Sstevel@tonic-gate $(ROOTLIBLP)/model \ 377c478bd9Sstevel@tonic-gate $(ROOTLIBLPLOCL) \ 387c478bd9Sstevel@tonic-gate $(ROOTLIB)/print \ 397c478bd9Sstevel@tonic-gate $(LPOWNSDIRS) 407c478bd9Sstevel@tonic-gateLPOWNSDIRS = \ 417c478bd9Sstevel@tonic-gate $(ROOTETCLP) \ 427c478bd9Sstevel@tonic-gate $(ROOTETCLP)/classes \ 437c478bd9Sstevel@tonic-gate $(ROOTETCLP)/forms \ 447c478bd9Sstevel@tonic-gate $(ROOTETCLP)/interfaces \ 457c478bd9Sstevel@tonic-gate $(ROOTETCLP)/printers \ 467c478bd9Sstevel@tonic-gate $(ROOTETCLP)/pwheels \ 477c478bd9Sstevel@tonic-gate $(ROOTETCLP)/ppd \ 487c478bd9Sstevel@tonic-gate $(ROOTVAR)/lp \ 497c478bd9Sstevel@tonic-gate $(ROOTVAR)/lp/logs \ 507c478bd9Sstevel@tonic-gate $(ROOTVARSP)/lp \ 517c478bd9Sstevel@tonic-gate $(ROOTVARSP)/lp/admins \ 527c478bd9Sstevel@tonic-gate $(ROOTVARSP)/lp/requests \ 537c478bd9Sstevel@tonic-gate $(ROOTVARSP)/lp/system 547c478bd9Sstevel@tonic-gate 557c478bd9Sstevel@tonic-gateSYMDIR1 = $(ROOTVARSP)/lp/admins/lp 567c478bd9Sstevel@tonic-gateSYMDIR2 = $(ROOTVARSP)/lp/bin 577c478bd9Sstevel@tonic-gateSYMDIR3 = $(ROOTVARSP)/lp/logs 587c478bd9Sstevel@tonic-gateSYMDIR4 = $(ROOTETCLP)/logs 597c478bd9Sstevel@tonic-gateSYMDIR5 = $(ROOTVARSP)/lp/model 607c478bd9Sstevel@tonic-gate 617c478bd9Sstevel@tonic-gate$(SYMDIR1) := SYMLNKDEST = ../../../../etc/lp 627c478bd9Sstevel@tonic-gate$(SYMDIR2) := SYMLNKDEST = ../../../usr/lib/lp/bin 637c478bd9Sstevel@tonic-gate$(SYMDIR3) := SYMLNKDEST = ../../lp/logs 647c478bd9Sstevel@tonic-gate$(SYMDIR4) := SYMLNKDEST = ../../var/lp/logs 657c478bd9Sstevel@tonic-gate$(SYMDIR5) := SYMLNKDEST = ../../../usr/lib/lp/model 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gateROOTSYMLINKDIRS = $(SYMDIR1) $(SYMDIR2) $(SYMDIR3) $(SYMDIR4) $(SYMDIR5) 687c478bd9Sstevel@tonic-gate 697c478bd9Sstevel@tonic-gate$(ROOTVAR)/lp := DIRMODE = 775 707c478bd9Sstevel@tonic-gate$(ROOTVAR)/lp/logs := DIRMODE = 775 717c478bd9Sstevel@tonic-gate$(ROOTETCLP) := DIRMODE = 775 727c478bd9Sstevel@tonic-gate$(ROOTETCLP)/classes := DIRMODE = 775 737c478bd9Sstevel@tonic-gate$(ROOTETCLP)/forms := DIRMODE = 775 747c478bd9Sstevel@tonic-gate$(ROOTETCLP)/interfaces := DIRMODE = 775 757c478bd9Sstevel@tonic-gate$(ROOTETCLP)/printers := DIRMODE = 775 767c478bd9Sstevel@tonic-gate$(ROOTETCLP)/pwheels := DIRMODE = 775 777c478bd9Sstevel@tonic-gate$(ROOTETCLP)/ppd := DIRMODE = 775 787c478bd9Sstevel@tonic-gate$(ROOTVARSP)/lp := DIRMODE = 775 797c478bd9Sstevel@tonic-gate$(ROOTVARSP)/lp/admins := DIRMODE = 775 807c478bd9Sstevel@tonic-gate$(ROOTVARSP)/lp/requests := DIRMODE = 775 817c478bd9Sstevel@tonic-gate$(ROOTVARSP)/lp/system := DIRMODE = 775 827c478bd9Sstevel@tonic-gate$(ROOTLIB)/print := DIRMODE = 0755 837c478bd9Sstevel@tonic-gate 847c478bd9Sstevel@tonic-gatePOFILE= lp.po 857c478bd9Sstevel@tonic-gatePOFILES= lp_*.po 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate.KEEP_STATE: 887c478bd9Sstevel@tonic-gate 897c478bd9Sstevel@tonic-gateall: $(TXTS) $(SUBDIRS) 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gate# 927c478bd9Sstevel@tonic-gate# Each message catalog file is generated in each sub 937c478bd9Sstevel@tonic-gate# directory and copied to the usr/src/cmd/lp/ directory. 947c478bd9Sstevel@tonic-gate# Those message catalog files are consolidated into one 957c478bd9Sstevel@tonic-gate# message catalog file. The consolidated one will be copied 967c478bd9Sstevel@tonic-gate# into the $(ROOT)/catalog/SUNW_OST_OSCMD/ directory. 977c478bd9Sstevel@tonic-gate# 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gate_msg: $(MSGDOMAINPOFILE) 1007c478bd9Sstevel@tonic-gate 1017c478bd9Sstevel@tonic-gate$(POFILE): $(MSGSUBDIRS) pofile_POFILES 1027c478bd9Sstevel@tonic-gate 1037c478bd9Sstevel@tonic-gateinstall: $(ROOTDIRS) $(ROOTSYMLINKDIRS) $(SUBDIRS) 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gateclean strip lint: $(SUBDIRS) 1067c478bd9Sstevel@tonic-gate 1077c478bd9Sstevel@tonic-gateclobber: $(SUBDIRS) local_clobber 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gatelocal_clobber: 1107c478bd9Sstevel@tonic-gate $(RM) $(CLOBBERFILES) 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gate$(ROOTDIRS) : 1137c478bd9Sstevel@tonic-gate $(INS.dir) 1147c478bd9Sstevel@tonic-gate 1157c478bd9Sstevel@tonic-gate$(ROOTSYMLINKDIRS) : 1167c478bd9Sstevel@tonic-gate -$(RM) $@; $(SYMLINK) $(SYMLNKDEST) $@ 1177c478bd9Sstevel@tonic-gate 1187c478bd9Sstevel@tonic-gate$(SUBDIRS): FRC 1197c478bd9Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gateFRC: 1227c478bd9Sstevel@tonic-gate 1237c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.msg.targ 124