Jump to content

How To Make a Makefile Colored Text Output


MichaelM

Recommended Posts

Spoiler

1712535C5mKdd.gif.384dd622be5fde56098964

 

Purpose of this HowTo: Making your Makefile's output look cleaner.

Guide:

Spoiler

- Open your Makefile with a text editor like Sublime Text or Notepad++.

Search for:


$(OBJDIR)/%.o: %.cpp

Your code should look like this:

 

1712534ca7efb155b14b5ab1b3fafab83ae649.p

Change


@echo compile $<

with


@echo -e "\033[0;32m [OK] \033[0m       \033[0;33m Compiling:\033[0m" $<

It should look like this:

171253751c0cbc643b498781ec32e0204a562c.p

Now, do the same for


$(OBJDIR)/version.o: version.cpp

and


$(OBJDIR)/minilzo.o: minilzo.c

in game's Makefile.

You can do the same thing for database's Makefile.

 

  • Metin2 Dev 2
  • Love 13
Link to comment
Share on other sites

  • 2 years later...
  • 2 weeks later...
  • 2 months later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.