diff options
author | Jasmin Jessich <jasmin@anw.at> | 2017-05-25 22:21:13 +0200 |
---|---|---|
committer | Jasmin Jessich <jasmin@anw.at> | 2017-05-25 22:30:31 +0200 |
commit | 260f2cf0cb7b724c9ca3f662529e7b6bbb9cbbb6 (patch) | |
tree | 5b5775965847c369148065e7456a3a58c1d60a02 /pages | |
parent | 3e0774c0968dc38178cadb41558302c8a888b875 (diff) | |
download | vdr-plugin-live-260f2cf0cb7b724c9ca3f662529e7b6bbb9cbbb6.tar.gz vdr-plugin-live-260f2cf0cb7b724c9ca3f662529e7b6bbb9cbbb6.tar.bz2 |
Improve Makefile printing
- 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.
Diffstat (limited to 'pages')
-rw-r--r-- | pages/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/pages/Makefile b/pages/Makefile index 018f256..ae0710e 100644 --- a/pages/Makefile +++ b/pages/Makefile @@ -20,16 +20,21 @@ SRCS := $(patsubst %.o,%.cpp,$(OBJS)) ESRCS := $(patsubst %.o,%.ecpp,$(OBJS)) ESRCS_DEPS := $(patsubst %.o,.%.edep,$(OBJS)) +include ../global.mk + ### The main target: all: libpages.a + @true ### Implicit rules: %.o: %.cpp - $(CXX) $(CXXFLAGS) $(TNTFLAGS) -c $(DEFINES) $(PLUGINFEATURES) $(INCLUDES) $< + $(call PRETTY_PRINT,"CC pages/" $@) + $(Q)$(CXX) $(CXXFLAGS) $(TNTFLAGS) -c $(DEFINES) $(PLUGINFEATURES) $(INCLUDES) $< %.cpp: %.ecpp - $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CPP) $< + $(call PRETTY_PRINT,"ECPP pages/" $@) + $(Q)$(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CPP) $< .%.edep: %.ecpp @$(ECPPC) -M $(ECPPFLAGS) $(ECPPFLAGS_CPP) $< > $@ @@ -47,9 +52,11 @@ endif ### Targets: libpages.a: $(OBJS) - $(AR) r $@ $^ + $(call PRETTY_PRINT,"AR pages/" $@) + $(Q)$(AR) r $@ $^ $(AR_NUL) clean: + $(call PRETTY_PRINT,"CLN pages/") @rm -f *~ *.o core* libpages.a $(SRCS) $(DEPFILE) $(ESRCS_DEPS) dist: clean |