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 ../../../../../Makefile.master 29 30 # EXPORT DELETE START 31 32 all: 33 @$(ECHO) " This Makefile is used to clean up the source tree\n" \ 34 "for export distribution.\n" \ 35 "[Usage]: make [EXPORT_SRC] [CRYPT_SRC]\n\n" \ 36 "WARNING: EXPORT_SRC, CRYPT_SRC targets change the\n" \ 37 "source tree and remove the Makefile." 38 39 # Special target to clean up the source tree for export distribution 40 # Warning: This target changes the source tree and removes this Makefile 41 42 EXPORT_SRC: 43 $(RM) dmech.c+ 44 sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 45 < dmech.c > dmech.c+ 46 $(MV) dmech.c+ dmech.c 47 $(RM) Makefile 48 $(CHMOD) 444 dmech.c 49 50 # CRYPT DELETE START 51 # CRYPT DELETE START 52 # Special target to clean up the source tree for domestic distribution 53 # Warning: This target changes the source tree 54 55 CRYPT_SRC: 56 $(RM) dmech.c+ Makefile+ 57 sed -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 58 < dmech.c > dmech.c+ 59 $(MV) dmech.c+ dmech.c 60 sed -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \ 61 < Makefile > Makefile+ 62 $(MV) Makefile+ Makefile 63 $(CHMOD) 444 dmech.c Makefile 64 65 # CRYPT DELETE END 66 # EXPORT DELETE END