55 .KEEP_STATE:
56 all: $(DERIVED_FILES) .WAIT $(SUBDIRS)
57
58 install: $(DERIVED_FILES) .WAIT $(SUBDIRS)
59
60 clean clobber delete lint catalog package: $(SUBDIRS)
61
62 #
63 # Rules for building the derived files
64 #
65 mech/xdr_token.c: $(PROTOCOL_DIR)/dhmech_prot.x
66 $(RPCGEN) -c $(PROTOCOL_DIR)/dhmech_prot.x |\
67 $(SED) -e 's!$(PROTOCOL_DIR)/dhmech_prot.h!dhmech_prot.h!' > $@
68
69 mech/dhmech_prot.h: mech/dhmech_prot.x
70 $(RPCGEN) -h $(PROTOCOL_DIR)/dhmech_prot.x > $@
71
72 # include library targets
73 include ../../../Makefile.targ
74
75 # EXPORT DELETE START
76 # Special target to clean up the source tree for export distribution
77 # Warning: This target changes the source tree
78 EXPORT_SRC:
79 $(RM) Makefile+ Makefile.com+ mech/crypto.c+ mech/dhmech.c+
80 $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
81 < Makefile > Makefile+
82 $(MV) Makefile+ Makefile
83 $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
84 < Makefile.com > Makefile.com+
85 $(MV) Makefile.com+ Makefile.com
86 $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
87 < mech/crypto.c > mech/crypto.c+
88 $(MV) mech/crypto.c+ mech/crypto.c
89 $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
90 < mech/dhmech.c > mech/dhmech.c+
91 $(MV) mech/dhmech.c+ mech/dhmech.c
92 $(CHMOD) 444 Makefile Makefile.com mech/crypto.c mech/dhmech.c
93
94 # CRYPT DELETE START
95 CRYPT_SRC:
96 $(RM) Makefile+ Makefile.com+ mech/dhmech.c+
97 $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
98 < Makefile \
99 | $(SED) -e "/EXPORT DELETE/d" \
100 > Makefile+
101 $(MV) Makefile+ Makefile
102 $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
103 < Makefile.com \
104 | $(SED) -e "/EXPORT DELETE/d" \
105 > Makefile.com+
106 $(MV) Makefile.com+ Makefile.com
107 $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
108 < mech/dhmech.c > mech/dhmech.c+
109 $(MV) mech/dhmech.c+ mech/dhmech.c
110 $(CHMOD) 444 Makefile Makefile.com mech/dhmech.c
111
112 # CRYPT DELETE END
113 # EXPORT DELETE END
114
115 _msg: $(MSGDOMAIN) $(POFILE)
116 $(RM) $(MSGDOMAIN)/$(POFILE)
117 $(CP) $(POFILE) $(MSGDOMAIN)
118
119 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
120 $(RM) $@
121 $(CAT) $(POFILES) > $@
122
123 generic.po:
124 $(RM) messages.po
125 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext mech/*.[ch]`
126 $(SED) "/^domain/d" messages.po > $@
127 $(RM) messages.po
128
129 $(MSGDOMAIN):
130 $(INS.dir)
131
132 $(MACH) $(MACH64): FRC
133 @cd $@; pwd; $(MAKE) $(TARGET)
134
|
55 .KEEP_STATE:
56 all: $(DERIVED_FILES) .WAIT $(SUBDIRS)
57
58 install: $(DERIVED_FILES) .WAIT $(SUBDIRS)
59
60 clean clobber delete lint catalog package: $(SUBDIRS)
61
62 #
63 # Rules for building the derived files
64 #
65 mech/xdr_token.c: $(PROTOCOL_DIR)/dhmech_prot.x
66 $(RPCGEN) -c $(PROTOCOL_DIR)/dhmech_prot.x |\
67 $(SED) -e 's!$(PROTOCOL_DIR)/dhmech_prot.h!dhmech_prot.h!' > $@
68
69 mech/dhmech_prot.h: mech/dhmech_prot.x
70 $(RPCGEN) -h $(PROTOCOL_DIR)/dhmech_prot.x > $@
71
72 # include library targets
73 include ../../../Makefile.targ
74
75 _msg: $(MSGDOMAIN) $(POFILE)
76 $(RM) $(MSGDOMAIN)/$(POFILE)
77 $(CP) $(POFILE) $(MSGDOMAIN)
78
79 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
80 $(RM) $@
81 $(CAT) $(POFILES) > $@
82
83 generic.po:
84 $(RM) messages.po
85 $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext mech/*.[ch]`
86 $(SED) "/^domain/d" messages.po > $@
87 $(RM) messages.po
88
89 $(MSGDOMAIN):
90 $(INS.dir)
91
92 $(MACH) $(MACH64): FRC
93 @cd $@; pwd; $(MAKE) $(TARGET)
94
|