patch for winsup/cygwin/Makefile.in

David Rothenberger daveroth@acm.org
Thu Jul 24 00:01:00 GMT 2003


Ronald Landheer-Cieslak writes:
 > The attached patch fixes a (micro) problem that has been bugging me for a while
 > now: the various header files could not be installed with a `make install` 
 > without creating the proper directories first.
 > 
 > patch is against current CVS
 > 
 > HTH
 > 
 > rlc


The supplier patch didn't work for me, because it assumed
mkinstalldirs was in src/winsup/cygwin instead of src.  The
following patch (against current CVS) works for me.

Dave

--

diff -u -r1.127 Makefile.in
--- Makefile.in 7 Jul 2003 05:30:33 -0000       1.127
+++ Makefile.in 24 Jul 2003 00:00:12 -0000
@@ -269,6 +269,7 @@
        cd $(srcdir); \
        for sub in `find include -name '[a-z]*' -type d -print | sort`; do \
            for i in $$sub/*.h ; do \
+             $(SHELL) $(srcdir)/../../mkinstalldirs $(tooldir)/$$sub ; \
              $(INSTALL_DATA) $$i $(tooldir)/$$sub/`basename $$i` ; \
            done ; \
        done ; \
@@ -276,15 +277,19 @@
 
 install-man:
        cd $(srcdir); \
+       $(SHELL) $(srcdir)/../../mkinstalldirs $(tooldir)/man/man2 ; \
        for i in `find . -type f -name '*.2'`; do \
            $(INSTALL_DATA) $$i $(tooldir)/man/man2/`basename $$i` ; \
        done; \
+       $(SHELL) $(srcdir)/../../mkinstalldirs $(tooldir)/man/man3 ; \
        for i in `find . -type f -name '*.3'`; do \
            $(INSTALL_DATA) $$i $(tooldir)/man/man3/`basename $$i` ; \
        done; \
+       $(SHELL) $(srcdir)/../../mkinstalldirs $(tooldir)/man/man5 ; \
        for i in `find . -type f -name '*.5'`; do \
            $(INSTALL_DATA) $$i $(tooldir)/man/man5/`basename $$i` ; \
        done; \
+       $(SHELL) $(srcdir)/../../mkinstalldirs $(tooldir)/man/man7 ; \
        for i in `find . -type f -name '*.7'`; do \
            $(INSTALL_DATA) $$i $(tooldir)/man/man7/`basename $$i` ; \
        done



More information about the Cygwin-patches mailing list