Skip to content

Commit d40301c

Browse files
committed
fix: Makefile used .c at some places
1 parent 8a772f6 commit d40301c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Makefile

+2-10
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ all: $(SOFILE) i18n
8888

8989
### Implicit rules:
9090

91-
%.o: %.c Makefile
92-
@echo CC $@
93-
$(Q)$(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
94-
9591
%.o: %.cpp Makefile
9692
@echo CC $@
9793
$(Q)$(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
@@ -101,7 +97,7 @@ all: $(SOFILE) i18n
10197
MAKEDEP = $(CXX) -MM -MG
10298
DEPFILE = .dependencies
10399
$(DEPFILE): Makefile
104-
$(Q)$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
100+
$(Q)$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.cpp) > $@
105101

106102
-include $(DEPFILE)
107103

@@ -117,10 +113,6 @@ I18Npot = $(PODIR)/$(PLUGIN).pot
117113
@echo MO $@
118114
$(Q)msgfmt -c -o $@ $<
119115

120-
#$(I18Npot): $(wildcard *.c)
121-
# @echo GT $@
122-
# $(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 $^`
123-
124116
$(I18Npot): $(wildcard *.cpp)
125117
@echo GT $@
126118
$(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 $^`
@@ -171,4 +163,4 @@ clean:
171163

172164
.PHONY: cppcheck
173165
cppcheck:
174-
$(Q)cppcheck --language=c++ --enable=all -v -f $(OBJS:%.o=%.c)
166+
$(Q)cppcheck --language=c++ --enable=all -v -f $(OBJS:%.o=%.cpp)

0 commit comments

Comments
 (0)