1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21 22# 23# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 24# 25 26include ../Makefile.cmd 27 28FILEMODE=0444 29 30PYTHON= $(PYTHON_26) 31ROOTPYDIR= $(ROOT)/usr/lib/python2.6/vendor-packages 32ROOTMODDIR= $(ROOTPYDIR)/beadm 33 34PYCMD= beadm.py 35PYCMDFILE= $(PYCMD:%.py=%) 36 37PYMODULES= __init__.py BootEnvironment.py messages.py 38PYMODOBJS= $(PYMODULES:%.py=%.pyc) 39PYMODFILES= $(PYMODULES) $(PYMODOBJS) 40 41ROOTCMDFILE= $(PYCMDFILE:%=$(ROOTSBIN)/%) 42$(ROOTCMDFILE) := FILEMODE = 0555 43ROOTMODFILES= $(PYMODFILES:%=$(ROOTMODDIR)/%) 44ROOTUSRSBINLINKS= $(PYCMDFILE:%=$(ROOTUSRSBIN)/%) 45 46POFILE = beadm.po 47MSGFILES = beadm.py messages.py 48XGETTEXT = $(GNUXGETTEXT) 49XGETFLAGS = $(GNUXGETFLAGS) 50 51.KEEP_STATE: 52 53all: $(PYCMDFILE) $(PYMODOBJS) 54 55install: all $(ROOTCMDFILE) $(ROOTMODFILES) $(ROOTUSRSBINLINKS) 56 57clean: 58 $(RM) $(PYCMDFILE) $(PYMODOBJS) 59 60clobber: clean 61 62$(ROOTCMDDIR)/%: % 63 $(INS.pyfile) 64 65$(ROOTMODDIR)/%: % 66 $(INS.pyfile) 67 68$(ROOTUSRSBINLINKS): 69 -$(RM) $@; $(SYMLINK) ../../sbin/$(@F) $@ 70 71$(POFILE): $(MSGFILES) 72 $(BUILDPO.msgfiles) 73 74_msg: $(MSGDOMAINPOFILE) 75 76include $(SRC)/Makefile.msg.targ 77include ../Makefile.targ 78