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