Jump to content
×
×
  • Create New...

How To Make a Makefile Colored Text Output


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

Hidden Content

    Give reaction to this post to see the hidden content.
.

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.

 

  • Love 11
Link to comment
  • 2 years later...
  • 2 weeks later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.