Home | History | Annotate | Download | only in diskomizer
      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 2009 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 
     27 #ident	"@(#)Makefile	2.12	09/05/26 SMI"
     28 
     29 OS:sh=uname -s
     30 ARCH:sh=uname -p
     31 PWD:sh=pwd
     32 WS_ROOT:sh = exec ksh -c 'echo ${PWD%/usr/*}'
     33 include $(PWD)/STC.INFO
     34 PKG_NAME=SUNWstc-$(STC_NAME)
     35 SPOOL=$(WS_ROOT)/packages/$(ARCH)
     36 
     37 binary: install
     38 
     39 install lint:
     40 	cd build/$(OS)/$(ARCH) && BUILD_METHOD=STC \
     41 	PWD=$(PWD)/build/$(OS)/$(ARCH) \
     42 	WS_ROOT=$(WS_ROOT) \
     43 	SPOOL=$(SPOOL) \
     44 	VERSION=$(STC_VERSION) \
     45 	PKG_NAME=$(PKG_NAME) $(MAKE) -e $@
     46 
     47 shell: install
     48 	cd build/$(OS)/shell && BUILD_METHOD=STC \
     49 	PWD=$(PWD)/build/$(OS)/$(ARCH) \
     50 	WS_ROOT=$(WS_ROOT) \
     51 	SPOOL=$(SPOOL) \
     52 	VERSION=$(STC_VERSION) \
     53 	PKG_NAME=$(PKG_NAME) $(MAKE) -e install
     54 
     55 pkg package: install shell
     56 	cd build/$(OS)/pkg && BUILD_METHOD=STC \
     57 	PWD=$(PWD)/build/$(OS)/$(ARCH) \
     58 	WS_ROOT=$(WS_ROOT) \
     59 	SPOOL=$(SPOOL) \
     60 	VERSION=$(STC_VERSION) \
     61 	PKG_NAME=$(PKG_NAME) $(MAKE) -e ipackage
     62 	@echo "## Packaging complete."
     63 
     64 cleanall: 
     65 	cd build/$(OS)/shell && BUILD_METHOD=STC PWD=$(PWD)/build/$(OS)/$(ARCH) WS_ROOT=$(WS_ROOT) $(MAKE) clean
     66 	cd build/$(OS)/pkg && BUILD_METHOD=STC PWD=$(PWD)/build/$(OS)/$(ARCH) WS_ROOT=$(WS_ROOT) $(MAKE) clean
     67 	cd build/$(OS)/$(ARCH) && BUILD_METHOD=STC PWD=$(PWD)/build/$(OS)/$(ARCH) WS_ROOT=$(WS_ROOT) $(MAKE) clean
     68