From 260f2cf0cb7b724c9ca3f662529e7b6bbb9cbbb6 Mon Sep 17 00:00:00 2001 From: Jasmin Jessich Date: Thu, 25 May 2017 22:21:13 +0200 Subject: Improve Makefile printing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added global.mk with common makefile print macros. Use VERBOSE=1 on the command line to show executed commands. - Removed recursion printing of make. - Suppress “nothing to be done for 'all'” message from make. - gen_version_suffix.h is now always created. --- css/Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'css/Makefile') diff --git a/css/Makefile b/css/Makefile index 0411b30..9655703 100644 --- a/css/Makefile +++ b/css/Makefile @@ -11,22 +11,31 @@ INCLUDES += -I$(VDRDIR)/include -I.. OBJS := styles.o SRCS := $(patsubst %.o,%.cpp,$(OBJS)) +include ../global.mk + ### The main target: all: libcss.a + @true ### Implicit rules: %.o: %.cpp - $(CXX) $(CXXFLAGS) $(TNTFLAGS) -c $(DEFINES) $(PLUGINFEATURES) $(INCLUDES) $< + $(call PRETTY_PRINT,"CC css/" $@) + $(Q)$(CXX) $(CXXFLAGS) $(TNTFLAGS) -c $(DEFINES) $(PLUGINFEATURES) $(INCLUDES) $< %.cpp: %.css - $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CSS) -b -m "text/css" $< + $(call PRETTY_PRINT,"ECPP css/" $@) + $(Q)$(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CSS) -b -m "text/css" $< ### Targets: libcss.a: $(OBJS) - $(AR) r $@ $^ + $(call PRETTY_PRINT,"AR css/" $@) + $(Q)$(AR) r $@ $^ $(AR_NUL) clean: + $(call PRETTY_PRINT,"CLN css/") @rm -f *~ *.o core* libcss.a $(SRCS) dist: clean @echo "Nothing to do for distribution here ..." + +.PRECIOUS: $(SRCS) -- cgit v1.2.3