3 # Patch managed by http://www.holgerschurig.de/patcher.html
6 --- cpio-2.5/Makefile.in~install.patch
7 +++ cpio-2.5/Makefile.in
9 # Prefix for each installed man page, normally empty or `g'.
14 # Where to install the cpio and mt executables.
17 $(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) $(CFLAGS) $<
19 install:: installdirs all $(srcdir)/cpio.1 $(srcdir)/mt.1
20 - $(INSTALL_PROGRAM) cpio $(bindir)/$(binprefix)cpio
21 - test ! -f mt || $(INSTALL_PROGRAM) mt $(bindir)/$(binprefix)mt
22 - -test ! -f rmt || $(INSTALL_PROGRAM) rmt $(libexecdir)/rmt
23 - -$(INSTALL_DATA) $(srcdir)/cpio.1 $(mandir)/$(manprefix)cpio.$(manext)
24 - -test ! -f mt || $(INSTALL_DATA) $(srcdir)/mt.1 $(mandir)/$(manprefix)mt.$(manext)
25 + $(INSTALL_PROGRAM) -D cpio $(DESTDIR)$(bindir)/$(binprefix)cpio
26 + test ! -f mt || $(INSTALL_PROGRAM) -D mt $(DESTDIR)$(bindir)/$(binprefix)mt
27 + -test ! -f rmt || $(INSTALL_PROGRAM) -D rmt $(DESTDIR)$(libexecdir)/rmt
28 + -$(INSTALL_DATA) -D $(srcdir)/cpio.1 $(DESTDIR)$(mandir)/$(manprefix)cpio.$(manext)
29 + -test ! -f mt || $(INSTALL_DATA) -D $(srcdir)/mt.1 $(DESTDIR)$(mandir)/$(manprefix)mt.$(manext)
32 - $(srcdir)/mkinstalldirs $(bindir) $(libexecdir) $(mandir) $(infodir)
33 + $(srcdir)/mkinstalldirs $(DESTDIR)/$(bindir) $(DESTDIR)/$(libexecdir) $(DESTDIR)/$(mandir) $(DESTDIR)/$(infodir)
36 - cd $(bindir); rm -f $(binprefix)cpio $(binprefix)mt
37 - -rm -f $(libexecdir)/rmt
38 - cd $(mandir); rm -f $(manprefix)cpio.$(manext) $(manprefix)mt.$(manext)
39 + cd $(DESTDIR)$(bindir); rm -f $(binprefix)cpio $(binprefix)mt
40 + -rm -f $(DESTDIR)$(libexecdir)/rmt
41 + cd $(DESTDIR)$(mandir); rm -f $(manprefix)cpio.$(manext) $(manprefix)mt.$(manext)
44 @echo No tests are supplied.
47 install-info: $(INFO_DEPS)
48 for file in *.info*; do \
49 - $(INSTALL_DATA) $$file $(infodir)/$$file; \
50 + $(INSTALL_DATA) -D $$file $(DESTDIR)$(infodir)/$$file; \
53 uninstall:: uninstall-info
56 for file in *.info*; do \
57 - rm -f $(infodir)/$$file; \
58 + rm -f $(DESTDIR)$(infodir)/$$file; \