Print this page
first pass


 115 
 116 #
 117 # Rules for building the derived files
 118 #
 119 # Derived header files
 120 #
 121 nis/gen/nis_clnt.h: $(PROTOCOL_DIR)/nis.x $(PROTOCOL_DIR)/nis_object.x 
 122         $(RPCGEN) -C -h $(PROTOCOL_DIR)/nis.x > nis_clnt-gen.h
 123         $(SED) -n -e '/EDIT_START/,$$ p' < nis_clnt-gen.h |\
 124         $(SED) -e 's/_3_svc/_svc/' |\
 125         $(SED) -e 's/_3/_clnt/' > $@
 126         $(RM) nis_clnt-gen.h
 127 
 128 #
 129 # Derived source files
 130 #
 131 
 132 # include library targets
 133 include ../Makefile.targ
 134 
 135 # EXPORT DELETE START
 136 # CRYPT DELETE START
 137 # Special target to clean up the source tree for export distribution
 138 # Warning: This target changes the source tree
 139 EXPORT_SRC:
 140         $(RM) Makefile+ des/des_crypt.c+ des/des_soft.c+ key/xcrypt.c+
 141         $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
 142                 < des/des_crypt.c > des/des_crypt.c+
 143         $(MV) des/des_crypt.c+ des/des_crypt.c
 144         $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
 145                 < des/des_soft.c > des/des_soft.c+
 146         $(MV) des/des_soft.c+ des/des_soft.c
 147         $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
 148                 < key/xcrypt.c > key/xcrypt.c+
 149         $(MV) key/xcrypt.c+ key/xcrypt.c
 150         $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
 151                 < Makefile > Makefile+
 152         $(MV) Makefile+ Makefile
 153         $(CHMOD) 444 Makefile des/des_crypt.c des/des_soft.c key/xcrypt.c
 154 
 155 CRYPT_SRC:
 156         $(RM) Makefile+
 157         $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d"      \
 158                         < Makefile                           \
 159            | $(SED) -e "/EXPORT DELETE/d"                               \
 160                         > Makefile+
 161         $(MV) Makefile+ Makefile
 162         $(CHMOD) 444 Makefile
 163 
 164 # CRYPT DELETE END
 165 # EXPORT DELETE END
 166 
 167 _msg: $(MSGDOMAIN) $(POFILE)
 168         $(RM) $(MSGDOMAIN)/$(POFILE)
 169         $(CP) $(POFILE) $(MSGDOMAIN)
 170 
 171 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
 172         $(RM) $@
 173         $(CAT) $(POFILES) > $@
 174 
 175 _errlst.po:
 176         $(RM) messages.po
 177         $(XGETTEXT) -a nsl/_errlst.c
 178         $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
 179         $(RM) messages.po
 180 
 181 generic.po:
 182         $(RM) messages.po
 183         $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext */*.[ch] nis/*/*.[ch]*`
 184         $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
 185         $(RM) messages.po
 186 


 115 
 116 #
 117 # Rules for building the derived files
 118 #
 119 # Derived header files
 120 #
 121 nis/gen/nis_clnt.h: $(PROTOCOL_DIR)/nis.x $(PROTOCOL_DIR)/nis_object.x 
 122         $(RPCGEN) -C -h $(PROTOCOL_DIR)/nis.x > nis_clnt-gen.h
 123         $(SED) -n -e '/EDIT_START/,$$ p' < nis_clnt-gen.h |\
 124         $(SED) -e 's/_3_svc/_svc/' |\
 125         $(SED) -e 's/_3/_clnt/' > $@
 126         $(RM) nis_clnt-gen.h
 127 
 128 #
 129 # Derived source files
 130 #
 131 
 132 # include library targets
 133 include ../Makefile.targ
 134 
































 135 _msg: $(MSGDOMAIN) $(POFILE)
 136         $(RM) $(MSGDOMAIN)/$(POFILE)
 137         $(CP) $(POFILE) $(MSGDOMAIN)
 138 
 139 $(POFILE): $(DERIVED_FILES) .WAIT $(POFILES)
 140         $(RM) $@
 141         $(CAT) $(POFILES) > $@
 142 
 143 _errlst.po:
 144         $(RM) messages.po
 145         $(XGETTEXT) -a nsl/_errlst.c
 146         $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
 147         $(RM) messages.po
 148 
 149 generic.po:
 150         $(RM) messages.po
 151         $(XGETTEXT) $(XGETFLAGS) `$(GREP) -l gettext */*.[ch] nis/*/*.[ch]*`
 152         $(SED) -e '/^# msg/d' -e '/^domain/d' messages.po > $@
 153         $(RM) messages.po
 154