From 0cfcfb222f85ce9d4ff94c8fd7280b789c44425a Mon Sep 17 00:00:00 2001
From: David Daoust
Date: Thu, 24 Jun 2004 15:23:11 +0000
Subject: [PATCH] From Dave Williams: A few minor changes to the tutorials and
the new cdt_c_makefile.htm
---
.../concepts/cdt_c_makefile.htm | 12 ++++++------
.../getting_started/cdt_w_basic.htm | 2 +-
.../getting_started/cdt_w_standard.htm | 4 ++--
.../getting_started/cdt_w_standard11.htm | 3 +--
.../getting_started/cdt_w_standard17.htm | 3 ++-
.../getting_started/cdt_w_standard24.htm | 6 +++---
.../getting_started/cdt_w_standard25.htm | 2 +-
.../getting_started/make_example.htm | 3 +--
8 files changed, 17 insertions(+), 18 deletions(-)
diff --git a/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_makefile.htm b/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_makefile.htm
index 73350e76fb6..50628fd7df9 100644
--- a/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_makefile.htm
+++ b/doc/org.eclipse.cdt.doc.user/concepts/cdt_c_makefile.htm
@@ -77,9 +77,9 @@ $(LINK_TARGET) : $(OBJS)
# It says how to create a file with a .o suffix, given a file with a .cpp suffix.
# The rule's command uses some built-in Make Macros:
# $@ for the pattern-matched target
-# $< for the pattern-matched dependency
+# $lt; for the pattern-matched dependency
%.o : %.cpp
- g++ -g -o $@ -c $<
+ g++ -g -o $@ -c $<
# These are Dependency Rules, which are rules without any command.
# Dependency Rules indicate that if any file to the right of the colon changes,
@@ -94,7 +94,7 @@ Test2.o : Test2.h
# Alternatively to manually capturing dependencies, several automated
# dependency generators exist. Here is one possibility (commented out)...
# %.dep : %.cpp
-# g++ -M $(FLAGS) $< > $@
+# g++ -M $(FLAGS) $< > $@
# include $(OBJS:.o=.dep)
@@ -153,7 +153,7 @@ Messages from the standard error stream (the lines saying Error 255) and standar
This is helpful for build large projects.
You can remove the -k flag by turning on Project Properties > C/C++ Make Project > Make Builder > Stop on first build error
-Q6. My Console view looks like:
+
Q6. My Console view looks like:
mingw32-make clean all
process_begin: CreateProcess((null), rm -f Test1.o Test2.o Main.o test_me.exe, ...) failed.
@@ -168,11 +168,11 @@ rm -f Test1.o Test2.o Main.o test_me.exe
clean :
-del $(REBUILDABLES)
echo Clean done
-
+
The leading minus sign tells make to consider the clean rule to be successful even if the del command returns failure. This may be acceptable since the del command will fail if the specified files to be deleted do not exist yet (or anymore).
