]> git.vomp.tv Git - jsonserver.git/commitdiff
Put back VDR 1.7.36 changes
authorChris Tallon <chris@telescope.org>
Sat, 1 Feb 2014 19:05:10 +0000 (19:05 +0000)
committerChris Tallon <chris@telescope.org>
Sat, 1 Feb 2014 19:05:10 +0000 (19:05 +0000)
Makefile

index a90e43eb18d69d0aaeb2ffc5d523ab39e0e981e5..300023671d4a7683832aa820469fb69d0bad839d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,8 @@ VERSION = $(shell grep 'static const char \*VERSION *=' $(PLUGIN).c | awk '{ pri
 
 # Use package data if installed...otherwise assume we're under the VDR source directory:
 PKGCFG = $(if $(VDRDIR),$(shell pkg-config --variable=$(1) $(VDRDIR)/vdr.pc),$(shell pkg-config --variable=$(1) vdr || pkg-config --variable=$(1) ../../../vdr.pc))
-LIBDIR = $(DESTDIR)$(call PKGCFG,libdir)
-LOCDIR = $(DESTDIR)$(call PKGCFG,locdir)
+LIBDIR = $(call PKGCFG,libdir)
+LOCDIR = $(call PKGCFG,locdir)
 PLGCFG = $(call PKGCFG,plgcfg)
 #
 TMPDIR ?= /tmp
@@ -65,14 +65,14 @@ all: $(SOFILE) i18n
 ### Implicit rules:
 
 %.o: %.c
-       $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) $<
+       $(CXX) $(CXXFLAGS) -c $(DEFINES) $(INCLUDES) -o $@ $<
 
 ### Dependencies:
 
 MAKEDEP = $(CXX) -MM -MG
 DEPFILE = .dependencies
 $(DEPFILE): Makefile
-       @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
+       @$(MAKEDEP) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(OBJS:%.o=%.c) > $@
 
 -include $(DEPFILE)
 
@@ -81,7 +81,7 @@ $(DEPFILE): Makefile
 PODIR     = po
 I18Npo    = $(wildcard $(PODIR)/*.po)
 I18Nmo    = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file))))
-I18Nmsgs  = $(addprefix $(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
+I18Nmsgs  = $(addprefix $(DESTDIR)$(LOCDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file))))))
 I18Npot   = $(PODIR)/$(PLUGIN).pot
 
 %.mo: %.po
@@ -94,7 +94,7 @@ $(I18Npot): $(wildcard *.c)
        msgmerge -U --no-wrap --no-location --backup=none -q -N $@ $<
        @touch $@
 
-$(I18Nmsgs): $(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
+$(I18Nmsgs): $(DESTDIR)$(LOCDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo
        install -D -m644 $< $@
 
 .PHONY: i18n
@@ -108,7 +108,7 @@ $(SOFILE): $(OBJS)
        $(CXX) $(CXXFLAGS) $(LDFLAGS) -shared $(OBJS) -ljsoncpp -o $@
 
 install-lib: $(SOFILE)
-       install -D $^ $(LIBDIR)/$^.$(APIVERSION)
+       install -D $^ $(DESTDIR)$(LIBDIR)/$^.$(APIVERSION)
 
 install: install-lib install-i18n