delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Ralf Habacker" <Ralf DOT Habacker AT freenet DOT de> |
To: | "Cygwin" <cygwin AT sources DOT redhat DOT com> |
Subject: | uninstall target for cygwin/Makefile.in |
Date: | Fri, 4 Jan 2002 11:24:44 +0100 |
Message-ID: | <007201c1950a$06f0cae0$865c07d5@BRAMSCHE> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook 8.5, Build 4.71.2173.0 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
Importance: | Normal |
------=_NextPart_000_0073_01C19512.68B532E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi, on working with temporay cygwin builds and installations I missed an uninstall option of a local build and installed cygwin.dll. The appended patch added this functionality to cygwin/Makefile. If someone find this useful to integrate, please use it otherwise forget it. Regards Ralf ------=_NextPart_000_0073_01C19512.68B532E0 Content-Type: application/octet-stream; name="Makefile.in-uninstall.dif" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="Makefile.in-uninstall.dif" Index: Makefile.in=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /cvs/src/src/winsup/cygwin/Makefile.in,v=0A= retrieving revision 1.77=0A= diff -u -b -B -r1.77 Makefile.in=0A= --- Makefile.in 2001/12/31 06:24:15 1.77=0A= +++ Makefile.in 2002/01/04 10:21:18=0A= @@ -165,6 +165,8 @@=0A= =0A= install: install-libs install-headers install-man $(install_host) = $(install_target)=0A= =0A= +uninstall: uninstall-libs uninstall-headers uninstall-man =0A= +=0A= install-libs: $(TARGET_LIBS)=0A= $(INSTALL_DATA) new-$(DLL_NAME) $(bindir)/$(DLL_NAME); \=0A= for i in $^; do \=0A= @@ -196,6 +198,37 @@=0A= done=0A= =0A= install_host:=0A= +=0A= +=0A= +uninstall-libs: $(TARGET_LIBS)=0A= + rm -f $(bindir)/$(DLL_NAME); \=0A= + for i in $^; do \=0A= + rm -f $(tooldir)/lib/$$i ; \=0A= + done=0A= +=0A= +uninstall-headers:=0A= + cd $(srcdir); \=0A= + for sub in `find include -name '[a-z]*' -type d -print | sort`; do \=0A= + for i in $$sub/*.h ; do \=0A= + rm -f $(tooldir)/$$sub/`basename $$i` ; \=0A= + done ; \=0A= + done ; \=0A= + rm -f $(tooldir)/include/regex.h=0A= +=0A= +uninstall-man:=0A= + cd $(srcdir); \=0A= + for i in `find . -type f -name '*.2'`; do \=0A= + rm -f $(tooldir)/man/man2/`basename $$i` ; \=0A= + done; \=0A= + for i in `find . -type f -name '*.3'`; do \=0A= + rm -f $(tooldir)/man/man3/`basename $$i` ; \=0A= + done; \=0A= + for i in `find . -type f -name '*.5'`; do \=0A= + rm -f $(tooldir)/man/man5/`basename $$i` ; \=0A= + done; \=0A= + for i in `find . -type f -name '*.7'`; do \=0A= + rm -f $(tooldir)/man/man7/`basename $$i` ; \=0A= + done=0A= =0A= clean:=0A= -rm -f *.o *.dll *.a *.exp junk *.base version.cc regexp/*.o = winver_stamp *.exe *.d *stamp* *_magic.h=0A= ------=_NextPart_000_0073_01C19512.68B532E0 Content-Type: application/octet-stream; name="ChangeLog.Makefile.in-uninstall" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ChangeLog.Makefile.in-uninstall" 2002-01-04 Ralf Habacker <Ralf DOT Habacker AT freenet DOT de> * Makefile.in: added uninstall target ------=_NextPart_000_0073_01C19512.68B532E0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_0073_01C19512.68B532E0--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |