This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix make after clean


If you run make clean in winsup/cygwin followed by make -jX, the build
fails because devices.cc is not found; it was removed by make clean but
nothing forced it to be regenerated in time.

Patch attached.


Yaakov

2011-04-03  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

	* Makefile.in (devices.o): New rule with dependency on devices.cc
	to assure that the latter exists and is current.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/Makefile.in,v
retrieving revision 1.243
diff -u -r1.243 Makefile.in
--- Makefile.in	1 Apr 2011 19:48:19 -0000	1.243
+++ Makefile.in	3 Apr 2011 21:33:27 -0000
@@ -443,6 +443,9 @@
 $(srcdir)/devices.cc: gendevices devices.in devices.h
 	${wordlist 1,2,$^} $@
 
+devices.o: $(srcdir)/devices.cc
+	$(COMPILE_CXX) -o $@ $<
+
 ${CURDIR}/libc.a: ${LIB_NAME} ./libm.a libpthread.a libutil.a
 	${speclib} -v ${@F}
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]