This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: patch for winsup/cygwin/Makefile.in
- From: David Rothenberger <daveroth at acm dot org>
- To: cygwin-patches at cygwin dot com
- Date: Wed, 23 Jul 2003 17:01:00 -0700
- Subject: Re: patch for winsup/cygwin/Makefile.in
- References: <20030723171718.GA2875@linux_rln.harvest>
- Reply-to: cygwin-patches at cygwin dot com
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