Makefile revision 5f58abfdcb4ac30ee3299a9fc222d33bb75d22a7
3666N/A#
3666N/A# CDDL HEADER START
3666N/A#
3666N/A# The contents of this file are subject to the terms of the
3666N/A# Common Development and Distribution License (the "License").
3666N/A# You may not use this file except in compliance with the License.
3666N/A#
3666N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3666N/A# or http://www.opensolaris.org/os/licensing.
3666N/A# See the License for the specific language governing permissions
3666N/A# and limitations under the License.
3666N/A#
3666N/A# When distributing Covered Code, include this CDDL HEADER in each
3666N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3666N/A# If applicable, add the following below this CDDL HEADER, with the
3666N/A# fields enclosed by brackets "[]" replaced with your own identifying
3666N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3666N/A#
3666N/A# CDDL HEADER END
3666N/A#
3666N/A#
3666N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
4275N/A# Use is subject to license terms.
4275N/A#
4275N/A
4275N/Ainclude ../Makefile.sp
3666N/A
3666N/AROOTPRINTLIB = $(ROOTLIB)/print
3666N/AROOTLIBLPBIN = $(ROOTLIBLP)/bin
3666N/AROOTVARLP = $(ROOTVAR)/lp
3666N/AROOTVARLPPPD = $(ROOTVARLP)/ppd
3666N/A
3666N/A$(ROOTVARSPOOLPRINT) := OWNER=root
3666N/A$(ROOTVARLP) := OWNER=lp
3666N/A$(ROOTVARLP) := DIRMODE=0775
3666N/A
3666N/AOWNER = root
3666N/AGROUP = lp
3666N/AFILEMODE = 0755
3666N/A
3996N/AMSGFILES = lpadmin ppdmgr
3996N/APOFILE = scripts.po
3996N/A
3666N/APROG = conv_lp conv_lpd Makefile.yp
3666N/AROOTLIBPRINTPROG= $(PROG:%=$(ROOTPRINTLIB)/%)
3666N/A$(ROOTLIBPRINTPROG) := FILEMODE=0555
3666N/A$(ROOTPRINTLIB)/Makefile.yp := FILEMODE=0444
3666N/A
3666N/AUSRSBINPROG= lpsystem ppdmgr
3666N/AROOTUSRSBINPROG= $(USRSBINPROG:%=$(ROOTUSRSBIN)/%)
3666N/A$(ROOTUSRSBINPROG) := FILEMODE=555
3666N/A
3666N/APCONF= printers.conf
3666N/AROOTPCONF= $(PCONF:%=$(ROOTETC)/%)
3666N/A$(ROOTPCONF) := OWNER=root
3666N/A$(ROOTPCONF) := GROUP=sys
3666N/A$(ROOTPCONF) := FILEMODE=644
3666N/A
3666N/AMANUFALIASES= manufaliases
3666N/AROOTMANUFALIASES= $(MANUFALIASES:%=$(ROOTVARLPPPD)/%)
3666N/A$(ROOTMANUFALIASES) := OWNER=root
3666N/A$(ROOTMANUFALIASES) := GROUP=lp
3666N/A$(ROOTMANUFALIASES) := FILEMODE=444
3666N/A
3666N/ALIBLPPROGS= getmakes getmodels getppdfile getppds ppdfilename2mmp \
3666N/A lpadmin \
3666N/A desktop-print-management \
3666N/A desktop-print-management-applet \
3666N/A desktop-print-management-prefs
3666N/A
3666N/AROOTLIBLPPROGS= $(LIBLPPROGS:%=$(ROOTLIBLPBIN)/%)
3666N/A$(ROOTLIBLPPROGS) := OWNER=root
3666N/A$(ROOTLIBLPPROGS) := GROUP=lp
3666N/A$(ROOTLIBLPPROGS) := FILEMODE=555
3666N/A
3666N/ALIBLINKS= $(ROOTLIB)/lpadmin $(ROOTLIB)/lpsystem
3666N/A
3666N/AAPPFILES = desktop-print-management.desktop
3666N/AAPPFILES += desktop-print-management-prefs.desktop
3666N/AAUTOFILES = desktop-print-management-applet.desktop
3666N/A
3666N/AROOTAPPDIR = $(ROOT)/usr/share/applications
3666N/AROOTAUTODIR = $(ROOT)/usr/share/gnome/autostart
3666N/AROOTAPPFILES = $(APPFILES:%=$(ROOTAPPDIR)/%)
3666N/AROOTAUTOFILES = $(AUTOFILES:%=$(ROOTAUTODIR)/%)
3666N/A
3666N/A$(ROOTAPPFILES) := FILEMODE = 444
3666N/A$(ROOTAUTOFILES) := FILEMODE = 444
3666N/A
3666N/A
3666N/A.KEEP_STATE:
3666N/A
3666N/Aall : $(PROG)
3666N/A
3666N/A$(ROOTLIB)/print/%: %
3666N/A $(INS.file)
3666N/A
3666N/A$(ROOTLIBLPBIN)/%: %
3666N/A $(INS.file)
3666N/A
3666N/A$(ROOTVARLPPPD)/%: %
3666N/A $(INS.file)
3666N/A
3666N/A$(ROOTAPPDIR)/%: %
3996N/A $(INS.file)
$(ROOTAUTODIR)/%: %
$(INS.file)
$(ROOTUSRSBIN) $(ROOTVARSPOOLPRINT) $(ROOTVARLP) $(ROOTVARLPPPD):
$(INS.dir)
$(ROOTLIB)/lpadmin:
$(RM) $@; $(SYMLINK) ../sbin/lpadmin $@
$(ROOTLIB)/lpsystem:
$(RM) $@; $(SYMLINK) ../sbin/lpsystem $@
$(ROOTLNKPROGS) : $(ROOTSTARTPROG)
$(RM) $@; $(LN) $(ROOTSTARTPROG) $@
_msg: $(POFILE)
$(POFILE): $(MSGFILES)
grep gettext $(MSGFILES) | tr '`' ' ' | sed -e "s/gettext \"/gettext \(\"/" | sed -e "s/$$/);/" > $(POFILE).i
$(XGETTEXT) -s $(POFILE).i
$(RM) $@ $(POFILE).i
mv messages.po $(POFILE)
#
# Create a message file to test with
#
_msg_test:
grep gettext $(MSGFILES) | tr '`' ' ' | sed -e "s/gettext \"/gettext \(\"/" | sed -e "s/$$/);/" > $(POFILE).i
$(XGETTEXT) -s -m "xxx" $(POFILE).i
$(RM) $@ $(POFILE).i
mv messages.po $(POFILE)
install: $(ROOTLNKPROGS) \
$(ROOTLIBPRINTPROG) $(ROOTSTARTPROG) \
$(ROOTUSRSBIN) $(ROOTUSRSBINPROG) \
$(ROOTVARSPOOLPRINT) $(ROOTPCONF) \
$(ROOTLIBLPPROGS) $(LIBLINKS) \
$(ROOTVARLP) $(ROOTVARLPPPD) \
$(ROOTMANUFALIASES) \
$(ROOTAPPFILES) $(ROOTAUTOFILES)
$(SYMLINKS1):
$(RM) $@; $(SYMLINK) ../sbin/$(SBINPROG1) $@
$(SYMLINKS2):
$(RM) $@; $(SYMLINK) ../sbin/$(SBINPROG2) $@
clean:
$(RM) $(POFILE)
clobber: clean
strip lint: