3909 "zfs send -D" does not work
[illumos-gate.git] / usr / src / uts / common / gssapi / mechs / krb5 / Makefile
blob843741953743542c6bd4ebce60bd2927b0ef0ff4
2 # Copyright 1997-2003 Sun Microsystems, Inc. All rights reserved.
3 # Use is subject to license terms.
5 # ident "%Z%%M% %I% %E% SMI"
7 # /usr/src/uts/common/gssapi/mechs/krb5/Makefile
9 include ../../../../../Makefile.master
11 # EXPORT DELETE START
13 all:
14 @$(ECHO) " This Makefile is used to clean up the source tree\n" \
15 "for export distribution.\n" \
16 "[Usage]: make [EXPORT_SRC] [CRYPT_SRC]\n\n" \
17 "WARNING: EXPORT_SRC, CRYPT_SRC targets change the\n" \
18 "source tree and remove the Makefile."
20 # Special target to clean up the source tree for export distribution
21 # Warning: This target changes the source tree
22 EXPORT_SRC:
23 $(RM) krb5mech.c+ include/gssapiP_krb5.h+
24 sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
25 < include/gssapiP_krb5.h > include/gssapiP_krb5.h+
26 $(MV) include/gssapiP_krb5.h+ include/gssapiP_krb5.h
27 sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
28 < krb5mech.c > krb5mech.c+
29 $(MV) krb5mech.c+ krb5mech.c
31 $(RM) crypto/des/f_cbc.c+ crypto/des/f_cksum.c+ \
32 crypto/des/d3_cbc.c+ mech/seal.c+ mech/unseal.c+
34 $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
35 < mech/seal.c > mech/seal.c+
36 $(MV) mech/seal.c+ mech/seal.c
38 $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
39 < mech/unseal.c > mech/unseal.c+
40 $(MV) mech/unseal.c+ mech/unseal.c
42 $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
43 < crypto/des/f_cbc.c > crypto/des/f_cbc.c+
44 $(MV) crypto/des/f_cbc.c+ crypto/des/f_cbc.c
46 $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
47 < crypto/des/d3_cbc.c > crypto/des/d3_cbc.c+
48 $(MV) crypto/des/d3_cbc.c+ crypto/des/d3_cbc.c
50 $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
51 < crypto/des/f_cksum.c > crypto/des/f_cksum.c+
52 $(MV) crypto/des/f_cksum.c+ crypto/des/f_cksum.c
54 $(RM) ../../../Makefile.files+
55 sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
56 < ../../../Makefile.files > ../../../Makefile.files+
57 $(MV) ../../../Makefile.files+ ../../../Makefile.files
59 $(RM) Makefile+
60 sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
61 < Makefile > Makefile+
62 $(MV) Makefile+ Makefile
64 $(CHMOD) 444 krb5mech.c include/gssapiP_krb5.h crypto/des/f_cbc.c \
65 crypto/des/f_cksum.c crypto/des/d3_cbc.c \
66 mech/seal.c mech/unseal.c
68 # CRYPT DELETE START
69 # Special target to clean up the source tree for domestic distribution
70 # Warning: This target changes the source tree
71 CRYPT_SRC:
72 $(RM) krb5mech.c+
73 sed -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
74 < krb5mech.c > krb5mech.c+
75 $(MV) krb5mech.c+ krb5mech.c
77 $(RM) Makefile+
78 sed -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
79 < Makefile > Makefile+
80 $(MV) Makefile+ Makefile
82 $(CHMOD) 444 krb5mech.c Makefile
83 # CRYPT DELETE END
84 # EXPORT DELETE END