[Cmake] make clean, cygwin, foo.exe not removed

Wheeler, Fred (Research) wheeler at crd.ge.com
Thu Aug 8 10:41:37 EDT 2002


In cygwin, with makefiles produced by CMake (1.4 release), a "make clean" recursively removes the
object files and library files, but does not remove the executable files.  The problem is the .exe
suffix.  You can see the problem in the makefile extracts below.  The TARGETS list includes "srp",
but it is "srp.exe" that gcc actually produces.  EXECUTABLES is not set in the makefile.  The only
reference to that variable is seen below.  I do not know whether this ever worked.

Fred Wheeler

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

TARGETS =  \
libsrpocs.a \
srp

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

#---------------------------------------------------------
# remove generated files
#

clean: $(SUBDIR_CLEAN)
	-@ $(RM) $(CLEAN_OBJECT_FILES) $(EXECUTABLES) $(TARGETS) $(GENERATED_QT_FILES)
$(GENERATED_FLTK_FILES)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

--
Fred Wheeler, GE CRD, KWC-303
Phone: 518-387-7225 (GE Internal Dialcom: 8*833-7225)
Fax:   518-387-4042 (GE Internal Dialcom: 8*833-4042)



More information about the CMake mailing list