205 | | # $(INSTALL_DIR) $(ROOT)/etc/ |
206 | | $(INSTALL_DIR) $(ROOT)/etc/inittab.d |
207 | | # $(INSTALL_EXEC) ../doc/initscript.sample $(ROOT)/etc/ |
208 | | ln -sf halt $(ROOT)/sbin/reboot |
209 | | ln -sf halt $(ROOT)/sbin/poweroff |
210 | | ln -sf init $(ROOT)/sbin/telinit |
211 | | ln -sf /sbin/killall5 $(ROOT)/bin/pidof |
212 | | if [ ! -f $(ROOT)/usr/bin/lastb ]; then \ |
213 | | ln -sf last $(ROOT)/usr/bin/lastb; \ |
| 215 | # $(INSTALL_DIR) $(DESTDIR)/etc/ |
| 216 | $(INSTALL_DIR) $(DESTDIR)/etc/inittab.d |
| 217 | # $(INSTALL_EXEC) ../doc/initscript.sample $(DESTDIR)/etc/ |
| 218 | ln -sf halt $(DESTDIR)/sbin/reboot |
| 219 | ln -sf halt $(DESTDIR)/sbin/poweroff |
| 220 | ln -sf init $(DESTDIR)/sbin/telinit |
| 221 | ifneq ($(DISTRO),LFS) |
| 222 | ln -sf /sbin/killall5 $(DESTDIR)/bin/pidof |
| 223 | if [ ! -f $(DESTDIR)/usr/bin/lastb ]; then \ |
| 224 | ln -sf last $(DESTDIR)/usr/bin/lastb; \ |
215 | | $(INSTALL_DIR) $(ROOT)/usr/include/ |
216 | | $(INSTALL_DATA) initreq.h $(ROOT)/usr/include/ |
217 | | for lang in '' $(subst ../man/,,$(wildcard ../man/po/??/)); do \ |
218 | | $(INSTALL_DIR) $(ROOT)$(MANDIR)/man1/$$lang; \ |
219 | | $(INSTALL_DIR) $(ROOT)$(MANDIR)/man5/$$lang; \ |
220 | | $(INSTALL_DIR) $(ROOT)$(MANDIR)/man8/$$lang; \ |
221 | | done |
222 | | for man in $(MAN1) $(subst ../man/,,$(foreach man,$(MAN1),$(wildcard ../man/??/$(man)))); do \ |
223 | | $(INSTALL_DATA) ../man/$$man $(ROOT)$(MANDIR)/man1/$$man; \ |
224 | | sed -i "1{ $(MANDB); }" $(ROOT)$(MANDIR)/man1/$$man ; \ |
225 | | done |
226 | | for man in $(MAN5) $(subst ../man/,,$(foreach man,$(MAN5),$(wildcard ../man/??/$(man)))); do \ |
227 | | $(INSTALL_DATA) ../man/$$man $(ROOT)$(MANDIR)/man5/$$man; \ |
228 | | sed -i "1{ $(MANDB); }" $(ROOT)$(MANDIR)/man5/$$man ; \ |
229 | | done |
230 | | for man in $(MAN8) $(subst ../man/,,$(foreach man,$(MAN8),$(wildcard ../man/??/$(man)))); do \ |
231 | | $(INSTALL_DATA) ../man/$$man $(ROOT)$(MANDIR)/man8/$$man; \ |
232 | | sed -i "1{ $(MANDB); }" $(ROOT)$(MANDIR)/man8/$$man ; \ |
| 226 | endif |
| 227 | $(INSTALL_DIR) $(DESTDIR)/usr/include/ |
| 228 | $(INSTALL_DATA) initreq.h $(DESTDIR)/usr/include/ |
| 229 | for lang in '' $(subst ../man/,,$(wildcard ../man/??/)); do \ |
| 230 | [ x"$$lang" = 'xpo/' ] && continue; \ |
| 231 | $(INSTALL_DIR) $(DESTDIR)$(MANDIR)/$$lang/man1; \ |
| 232 | $(INSTALL_DIR) $(DESTDIR)$(MANDIR)/$$lang/man5; \ |
| 233 | $(INSTALL_DIR) $(DESTDIR)$(MANDIR)/$$lang/man8; \ |
| 234 | done |
| 235 | |
| 236 | for lang in '' $(subst ../man/,,$(wildcard ../man/??/)); do \ |
| 237 | [ x"$$lang" = "xpo/" ] && continue; \ |
| 238 | for man in $(MAN1); do \ |
| 239 | if ! test -f "../man/$$lang/$$man"; then continue; fi; \ |
| 240 | $(INSTALL_DATA) ../man/$$lang/$$man $(DESTDIR)/usr/share/man/$$lang/man5/$$man; \ |
| 241 | done; \ |
| 242 | for man in $(MAN5); do \ |
| 243 | if ! test -f "../man/$$lang/$$man"; then continue; fi; \ |
| 244 | $(INSTALL_DATA) ../man/$$lang/$$man $(DESTDIR)/usr/share/man/$$lang/man5/$$man; \ |
| 245 | done; \ |
| 246 | for man in $(MAN8); do \ |
| 247 | if ! test -f "../man/$$lang/$$man"; then continue; fi; \ |
| 248 | $(INSTALL_DATA) ../man/$$lang/$$man $(DESTDIR)/usr/share/man/$$lang/man5/$$man; \ |
| 249 | done; \ |