Home | History | Annotate | Download | only in include
      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, Version 1.0 only
      6 # (the "License").  You may not use this file except in compliance
      7 # with the License.
      8 #
      9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     10 # or http://www.opensolaris.org/os/licensing.
     11 # See the License for the specific language governing permissions
     12 # and limitations under the License.
     13 #
     14 # When distributing Covered Code, include this CDDL HEADER in each
     15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     16 # If applicable, add the following below this CDDL HEADER, with the
     17 # fields enclosed by brackets "[]" replaced with your own identifying
     18 # information: Portions Copyright [yyyy] [name of copyright owner]
     19 #
     20 # CDDL HEADER END
     21 #
     22 #
     23 # Copyright (c) 1997-2001 by Sun Microsystems, Inc.
     24 # All rights reserved.
     25 #
     26 #pragma ident	"%Z%%M%	%I%	%E% SMI"
     27 
     28 # include global definitions
     29 include ../../../../Makefile.master
     30 
     31 # EXPORT DELETE START
     32 
     33 all:
     34 	@$(ECHO) " This Makefile is used to clean up the source tree\n" \
     35 		"for export distribution.\n" \
     36 		"[Usage]: make [EXPORT_SRC] [CRYPT_SRC]\n\n" \
     37 		"WARNING: EXPORT_SRC, CRYPT_SRC targets change the\n" \
     38 		"source tree and remove the Makefile."
     39 
     40 # Special target to clean up the source tree for export distribution
     41 # Warning: This target changes the source tree and removes this Makefile
     42 
     43 EXPORT_SRC:
     44 	$(RM) gssapiP_dummy.h+ mechglueP.h+
     45 	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
     46 		< gssapiP_dummy.h > gssapiP_dummy.h+
     47 	$(MV) gssapiP_dummy.h+ gssapiP_dummy.h
     48 	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
     49 		< mechglueP.h > mechglueP.h+
     50 	$(MV) mechglueP.h+ mechglueP.h
     51 	$(RM) Makefile
     52 	$(CHMOD) 444 gssapiP_dummy.h mechglueP.h
     53 
     54 # CRYPT DELETE START
     55 # Special target to clean up the source tree for export distribution
     56 # Warning: This target changes the source tree.
     57 
     58 CRYPT_SRC:
     59 	$(RM) mechglueP.h+ Makefile+
     60 	sed -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
     61 		< mechglueP.h > mechglueP.h+
     62 	$(MV) mechglueP.h+ mechglueP.h
     63 	sed -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
     64 		< Makefile > Makefile+
     65 	$(MV) Makefile+ Makefile
     66 	$(CHMOD) 444 mechglueP.h Makefile
     67 	
     68 # CRYPT DELETE END
     69 # EXPORT DELETE END
     70