Home | History | Annotate | Download | only in autoconf
      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 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
     22 # Use is subject to license terms.
     23 #
     24 
     25 #
     26 #ident	"@(#)Makefile.sfw	1.8	09/05/20 SMI"
     27 #
     28 
     29 include ../Makefile.cmd
     30 
     31 VER=$(COMPONENT_NAME:sh)-$(COMPONENT_VERSION:sh)
     32 TARBALL=$(VER).tar.gz
     33 
     34 SFW_PATH="$(SPRO_ROOT)/bin:/usr/perl5/bin:/usr/sfw/bin:/usr/bin:/usr/ccs/bin:$(PATH)"
     35 
     36 all: $(VER)/config.status
     37 	(cd $(VER); env - \
     38 	    PATH=$(SFW_PATH) \
     39 	    MAKE=$(CCSMAKE) \
     40 	    $(CCSMAKE))
     41 
     42 # Leave in symlinks for compatibility
     43 COMPAT= autoconf autoheader autom4te autoreconf autoscan autoupdate ifnames
     44 
     45 COMPATLINKS = $(COMPAT:%=$(ROOTSFWBIN)/%)
     46 $(COMPATLINKS):
     47 	$(RM) $@; $(SYMLINK) ../../bin/$(@F) $@
     48 
     49 install: all $(COMPATLINKS)
     50 	# install the bits in the proto area
     51 	cd $(VER); env SRC=$(SRC) \
     52 	    DESTDIR=$(ROOT) \
     53 	    PERL=/usr/perl5/bin/perl \
     54 	    INSTALL="$(SRC)/tools/install-proto" \
     55 	    MANSCRIPT=$(SRC)/cmd/autoconf/sunman-stability \
     56 	    PATH=$(SFW_PATH) \
     57 	    MAKE=$(CCSMAKE) \
     58 	    $(CCSMAKE) install
     59 	# fix the proto area
     60 	for pkg in $(COMPONENT_PACKAGES:sh) ; do \
     61 		$(SRC)/tools/protofix --pkg $$pkg --perm ; \
     62 	done
     63 
     64 $(VER)/config.status: $(VER)/configure
     65 	(cd $(VER); env - \
     66 	    PATH=$(SFW_PATH) \
     67 	    MAKE=$(CCSMAKE) \
     68 	    EMACS=no \
     69 	    $(SHELL) ./configure \
     70 		--prefix=$(CFGPREFIX) \
     71 		--mandir=$(CFGMAN))
     72 
     73 $(VER)/configure: $(TARBALL)
     74 	/usr/bin/gzip -dc $(TARBALL) | tar xpf -
     75 	$(TOUCH) $(VER)/configure
     76 
     77 clean:
     78 	-rm -rf $(VER)
     79 
     80 include ../Makefile.targ
     81 
     82 FRC:
     83