]> Shamusworld >> Repos - ttedit/commitdiff
Colorized Makefile. Whee!
authorShamus Hammons <jlhamm@acm.org>
Tue, 3 Feb 2009 03:37:34 +0000 (03:37 +0000)
committerShamus Hammons <jlhamm@acm.org>
Tue, 3 Feb 2009 03:37:34 +0000 (03:37 +0000)
Makefile
src/editwindow.cpp

index 59b61f9a968e892e99f777272b0fd6003aeaf665..2f25505ebb9a45fb6405fc3837e198d33448abb0 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -105,32 +105,32 @@ obj:
 
 checkenv:
        @echo
-       @echo -n "*** Checking compilation environment... "
+       @echo -en "\033[01;33m***\033[00;32m Checking compilation environment... \033[00m"
 ifeq "" "$(shell which wx-config)"
        @echo
        @echo
-       @echo "It seems that you don't have the wxWidget development libraries installed."
-       @echo "If you have installed them, make sure that the wx-config file is somewhere"
-       @echo "in your path and is executable."
+       @echo -e "\033[01;33mIt seems that you don't have the wxWidget development libraries installed."
+       @echo -e "If you have installed them, make sure that the wx-config file is somewhere"
+       @echo -e "in your path and is executable.\033[00m"
        @echo
 #Is there a better way to break out of the makefile?
 #      @break
        @breakola!
 else
-       @echo "OK"
+       @echo -e "\033[01;37mOK\033[00m"
 endif
 
 message:
 #      @echo
-       @echo "*** Building TTEdit for $(MSG)..."
+       @echo -e "\033[01;33m***\033[00;32m Building TTEdit for $(MSG)...\033[00m"
        @echo
 
 clean:
-       @echo -n "*** Cleaning out the garbage..."
+       @echo -en "\033[01;33m***\033[00;32m Cleaning out the garbage...\033[00m"
        @rm -rf ./obj
-       @rm -f $(BIN_PROGRAM)
+       @rm -f ./$(TARGET)$(EXESUFFIX)
 #      rm -rf bombs.app
-       @echo "done!"
+       @echo -e "\033[01;37mdone!\033[00m"
 
 ## This is only done for Win32 at the moment...
 #
@@ -144,16 +144,16 @@ clean:
 
 ifneq "" "$(ICON)"
 $(RES_PROGRAM_OBJ): res/$(PROGRAM).rc res/$(PROGRAM).ico
-       @echo "*** Processing icon..."
+       @echo -e "\033[01;33m***\033[00;32m Processing icon...\033[00m"
        @$(RESCOMP) -i$< -o$@ --define __WX$(TOOLKIT)__ --include-dir ./res --define WXUSINGDLL --include-dir $(top_srcdir)/include/wx-2.6
 endif
 
 obj/%.o: $(srcdir)/%.cpp
-       @echo "*** Compiling $<..."
+       @echo -e "\033[01;33m***\033[00;32m Compiling $<...\033[00m"
        @$(CXX) -c -o $@ $(INCS) $(CXXFLAGS) $<
 
 $(BIN_PROGRAM): $(OBJECTS) $(RES_PROGRAM_OBJ)
-       @echo "*** Linking it all together..."
+       @echo -e "\033[01;33m***\033[00;32m Linking it all together...\033[00m"
        @$(CXX) -o $@ $(OBJECTS) $(RES_PROGRAM_OBJ) $(LIBS)
 #      $(_mac_rezcmd)
 #      $(_mac_setfilecmd)
index f617f3db4ebf70e32eacf226e43ef6d55d3d3959..a115f9682faab0043f9ae2b77434fb4d121ba07d 100755 (executable)
@@ -24,6 +24,7 @@
 //   point on screen
 // - Add poly multi-select
 // - Add point multi-select
+// - Undo system
 //
 
 // Uncomment this for debugging...