* Fix 'make distclean'
@ 2016-06-05 17:15 Ken Brown
2016-06-06 9:54 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: Ken Brown @ 2016-06-05 17:15 UTC (permalink / raw)
To: cygwin-patches
[-- Attachment #1: Type: text/plain, Size: 360 bytes --]
Sometimes when a build of Cygwin fails, there will be a message
suggesting running 'make distclean'. But this fails to clean the
winsup/cygwin subdirectory, and the build still fails.
On the other hand, 'make clean' in winsup/cygwin removes two source
files, which have to be restored before one can rebuild.
The attached patch fixes both problems.
Ken
[-- Attachment #2: 0001-Allow-make-distclean-to-clean-winsup-cygwin.patch --]
[-- Type: text/plain, Size: 2086 bytes --]
From 71c16ecc3126a41ae41cbf354428c64282952951 Mon Sep 17 00:00:00 2001
From: Ken Brown <kbrown@cornell.edu>
Date: Sun, 5 Jun 2016 12:58:22 -0400
Subject: [PATCH] Allow 'make distclean' to clean winsup/cygwin
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
But don’t let it remove source files.
---
winsup/Makefile.in | 4 ++--
winsup/cygwin/Makefile.in | 7 ++++---
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/winsup/Makefile.in b/winsup/Makefile.in
index 1fdf93a..9eca806 100644
--- a/winsup/Makefile.in
+++ b/winsup/Makefile.in
@@ -48,7 +48,7 @@ CLEAN_SUBDIRS=${patsubst %,clean_%,$(SUBDIRS)}
INSTALL_LICENSE:=@INSTALL_LICENSE@
-.PHONY: all install clean all-info info install-info install-license check \
+.PHONY: all install clean distclean all-info info install-info install-license check \
$(SUBDIRS) $(INSTALL_SUBDIRS) $(CLEAN_SUBDIRS)
.SUFFIXES:
@@ -71,7 +71,7 @@ install-license: CYGWIN_LICENSE COPYING
install: Makefile $(INSTALL_LICENSE) $(INSTALL_SUBDIRS)
-clean: $(CLEAN_SUBDIRS)
+clean distclean: $(CLEAN_SUBDIRS)
all-info:
diff --git a/winsup/cygwin/Makefile.in b/winsup/cygwin/Makefile.in
index 43919bd..a548368 100644
--- a/winsup/cygwin/Makefile.in
+++ b/winsup/cygwin/Makefile.in
@@ -653,14 +653,15 @@ uninstall-man:
rm -f $(DESTDIR)$(mandir)/man7/`basename $$i` ; \
done
-clean:
- -rm -f *.o *.dll *.dbg *.a *.exp junk *.base version.cc *.exe *.d *stamp* *_magic.h sigfe.s cygwin.def globals.h $(srcdir)/$(TLSOFFSETS_H) $(srcdir)/devices.cc
+clean distclean realclean:
+ -rm -f *.o *.dll *.dbg *.a *.exp junk *.base version.cc *.exe *.d *stamp* *_magic.h sigfe.s cygwin.def globals.h
-@$(MAKE) -C ${cygserver_blddir} libclean
-maintainer-clean realclean: clean
+maintainer-clean: clean
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
-rm -fr configure
+ -rm -f $(srcdir)/$(TLSOFFSETS_H) $(srcdir)/devices.cc
# Rule to build LDSCRIPT
$(LDSCRIPT): $(LDSCRIPT).in
--
2.8.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fix 'make distclean'
2016-06-05 17:15 Fix 'make distclean' Ken Brown
@ 2016-06-06 9:54 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2016-06-06 9:54 UTC (permalink / raw)
To: cygwin-patches
[-- Attachment #1: Type: text/plain, Size: 821 bytes --]
On Jun 5 13:15, Ken Brown wrote:
> Sometimes when a build of Cygwin fails, there will be a message suggesting
> running 'make distclean'. But this fails to clean the winsup/cygwin
> subdirectory, and the build still fails.
>
> On the other hand, 'make clean' in winsup/cygwin removes two source files,
> which have to be restored before one can rebuild.
>
> The attached patch fixes both problems.
Applied with a minor change (adding "*clean" targets to .PHONY).
I also added a patch which removes the tlsoffsets file if regenerating
it failed. This fixes an annoying build problem if gentls_offsets fails
to compile cygtls.h.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-06 9:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-05 17:15 Fix 'make distclean' Ken Brown
2016-06-06 9:54 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).