ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/truck/Common/common.mk
(Generate patch)

Comparing Common/common.mk (file contents):
Revision 17 by douglas, 2007-06-07T18:56:06-07:00 vs.
Revision 22 by douglas, 2008-02-08T06:19:12-08:00

# Line 33 | Line 33 | cyan_          :=\e[46m
33   white_          :=\e[47m
34  
35   %.o: %.cpp
36 <        @echo "$(bright)$(white)compile$(reset)\t$(bright)$(blue)[$(reset)$(<F)$(bright)$(blue)]$(reset)"
36 >        @echo "$(bright)$(white)compile\t$(blue)[$(reset)$(<F)$(bright)$(blue)]$(reset)"
37          @$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c -o $@ $<
38 <        @echo "$(bright)$(white)compile$(reset)\t$(bright)$(green)[$(reset)$(@F)$(bright)$(green)]$(reset)"
38 >        @echo "$(bright)$(white)compile\t$(green)[$(reset)$(@F)$(bright)$(green)]$(reset)"
39  
40   %: %.o
41          @echo "$(bright)$(white)link\t$(blue)[$(reset)$(^F)$(bright)$(blue)]$(reset)"
# Line 46 | Line 46 | lib%.a: %.o
46          @echo "$(bright)$(white)archive\t$(blue)[$(reset)$(^F)$(bright)$(blue)]$(reset)"
47          @$(AR) cr $@ $^
48          @echo "$(bright)$(white)archive\t$(green)[$(reset)$(@F)$(bright)$(green)]$(reset)"
49 +
50 + define recurse
51 +        @echo "$(bright)$(white)enter\t$(blue)[$(reset)$(1)$(bright)$(blue)]$(reset)"
52 +        @+$(MAKE) --no-print-directory -C $(1) $(2)
53 +        @echo "$(bright)$(white)leave\t$(green)[$(reset)$(1)$(bright)$(green)]$(reset)"
54 + endef
55 +
56 + define clean
57 + clean:
58 +        @echo "$(bright)$(white)clean\t$(blue)[$(reset)$(1)$(bright)$(blue)]$(reset)"
59 +        @rm -frv $(1)
60 +        @echo "$(bright)$(white)clean\t$(green)[$(reset)$(1)$(bright)$(green)]$(reset)"
61 + endef

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines