Adapt VDR's Makefile style again.

This commit is contained in:
Rolf Ahrenberg 2017-06-04 23:02:13 +03:00
parent 0dec600842
commit c8868748a8
2 changed files with 12 additions and 12 deletions

View File

@ -71,14 +71,14 @@ all: $(SOFILE) i18n
%.o: %.c %.o: %.c
@echo CC $@ @echo CC $@
@$(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $< $(Q)$(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
### Dependencies: ### Dependencies:
MAKEDEP = $(CXX) -MM -MG MAKEDEP = $(CXX) -MM -MG
DEPFILE = .dependencies DEPFILE = .dependencies
$(DEPFILE): Makefile $(DEPFILE): Makefile
@$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@ $(Q)$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
-include $(DEPFILE) -include $(DEPFILE)
@ -92,20 +92,20 @@ I18Npot = $(PODIR)/$(PLUGIN).pot
%.mo: %.po %.mo: %.po
@echo MO $@ @echo MO $@
@msgfmt -c -o $@ $< $(Q)msgfmt -c -o $@ $<
$(I18Npot): $(wildcard *.c) $(I18Npot): $(wildcard *.c)
@echo GT $@ @echo GT $@
@xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --package-name=vdr-$(PLUGIN) --package-version=$(VERSION) --msgid-bugs-address='<see README>' -o $@ `ls $^` $(Q)xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --package-name=vdr-$(PLUGIN) --package-version=$(VERSION) --msgid-bugs-address='<see README>' -o $@ `ls $^`
%.po: $(I18Npot) %.po: $(I18Npot)
@echo PO $@ @echo PO $@
@msgmerge -U --no-wrap --no-location --backup=none -q -N $@ $< $(Q)msgmerge -U --no-wrap --no-location --backup=none -q -N $@ $<
@touch $@ @touch $@
$(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo $(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
@echo IN $@ @echo IN $@
@install -D -m644 $< $@ $(Q)install -D -m644 $< $@
.PHONY: i18n .PHONY: i18n
i18n: $(I18Nmo) $(I18Npot) i18n: $(I18Nmo) $(I18Npot)
@ -116,12 +116,12 @@ install-i18n: $(I18Nmsgs)
$(SOFILE): $(OBJS) $(SOFILE): $(OBJS)
@echo LD $@ @echo LD $@
@$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@ $(Q)$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -o $@
@$(STRIP) $@ $(Q)$(STRIP) $@
install-lib: $(SOFILE) install-lib: $(SOFILE)
@echo IN $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION) @echo IN $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)
@install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION) $(Q)install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)
install: install-lib install-i18n install: install-lib install-i18n
@ -139,4 +139,4 @@ clean:
.PHONY: cppcheck .PHONY: cppcheck
cppcheck: cppcheck:
@cppcheck --language=c++ --enable=all -v -f $(OBJS:%.o=%.c) $(Q)cppcheck --language=c++ --enable=all -v -f $(OBJS:%.o=%.c)

View File

@ -17,8 +17,8 @@
#include "tools.h" #include "tools.h"
#include "setup.h" #include "setup.h"
#if defined(APIVERSNUM) && APIVERSNUM < 20305 #if defined(APIVERSNUM) && APIVERSNUM < 20306
#error "VDR-2.3.5 API version or greater is required!" #error "VDR-2.3.6 API version or greater is required!"
#endif #endif
#ifndef GITVERSION #ifndef GITVERSION