Home | History | Annotate | Download | only in pkgdefs
      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/CDDL.txt
      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/CDDL.txt.
     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 2008 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 # ident	"@(#)Makefile	1.39	08/06/09 SMI"
     27 #
     28 # pkgdefs/Makefile
     29 #
     30 
     31 include $(SRC)/Makefile.master
     32 
     33 PRODUCT_SUBDIRS = \
     34 	SUNWscgrepavs \
     35 	SUNWscgrepavsu \
     36 	SUNWscgrepsrdf \
     37 	SUNWscgrepsrdfu \
     38 	SUNWscgreptc \
     39 	SUNWscgreptcu \
     40 	SUNWscgrepodg \
     41 	SUNWscgrepodgu \
     42 	SUNWscgctl \
     43 	SUNWscgctlr \
     44 	SUNWscghb \
     45 	SUNWscghbr \
     46 	SUNWscgspm \
     47 	SUNWscgman
     48 
     49 SUBDIRS= $(PRODUCT_SUBDIRS)
     50 
     51 # Localization
     52 L10N_XMODS= l10n
     53 
     54 DVDIMAGES_XMODS= \
     55 	dvdimages
     56 
     57 XMODS=	$($(MACH)_XMODS) $(L10N_XMODS) $(DVDIMAGES_XMODS)
     58 
     59 all :=         		TARGET= all
     60 install := 		TARGET= install
     61 clean :=                TARGET= clean
     62 clobber :=              TARGET= clobber
     63 _msg :=                 TARGET= _msg
     64 patch_build :=		TARGET= patch_build
     65 
     66 
     67 .KEEP_STATE:
     68 
     69 .PARALLEL: $(SUBDIRS) $(XMODS)
     70 
     71 install: awk_pkginfo $(SUBDIRS) $(XMODS)
     72 
     73 all: awk_pkginfo $(SUBDIRS) $(XMODS)
     74 
     75 clean clobber: $(SUBDIRS) $(XMODS)
     76 	$(RM) awk_pkginfo
     77 
     78 patch_build: awk_pkginfo $(PRODUCT_SUBDIRS)
     79 
     80 $(SUBDIRS): FRC
     81 	@cd $@; pwd; $(MAKE) $(TARGET)
     82 
     83 $(XMODS):       FRC
     84 	@if [ -f $@/Makefile  ]; then \
     85 		cd $@; pwd; $(MAKE) $(TARGET); \
     86 	else \
     87 		true; \
     88 	fi
     89 
     90 $(NOT_RELEASE_BUILD)AWK_PKGINFO_DFLAG= -d
     91 
     92 awk_pkginfo: ./bld_awk_pkginfo
     93 	./bld_awk_pkginfo -m $(MACH) -p "$(RELEASE)/$(VERSION)" ${AWK_PKGINFO_DFLAG} -o $@
     94 
     95 FRC:
     96