diff options
author | anbr <vdr07@deltab.de> | 2010-12-21 20:50:24 +0100 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2010-12-21 20:50:24 +0100 |
commit | 07cce828d4db48ba6c32c6d925974c9642f9ee54 (patch) | |
tree | 406b2fd10228f04dc17161e26d0c91be284a28e3 /Makefile | |
parent | 7123265abbc6114f284c719f68197a9994e24c33 (diff) | |
download | vdr-plugin-dvdswitch-0.1.2.tar.gz vdr-plugin-dvdswitch-0.1.2.tar.bz2 |
release 0.1.2 from http://www.schmidtie.de/download/vdr-dvdswitch-0.1.2.tar.bz20.1.2
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -20,7 +20,6 @@ CXXFLAGS ?= -O2 -Wall -Woverloaded-virtual ### The directory environment: -DVBDIR = ../../../../DVB VDRDIR = ../../.. LIBDIR = ../../lib TMPDIR = /tmp @@ -29,9 +28,9 @@ TMPDIR = /tmp -include $(VDRDIR)/Make.config -### The version number of VDR (taken from VDR's "config.h"): +### The version number of VDR's plugin API (taken from VDR's "config.h"): -VDRVERSION = $(shell grep 'define VDRVERSION ' $(VDRDIR)/config.h | awk '{ print $$3 }' | sed -e 's/"//g') +APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' $(VDRDIR)/config.h) ### The name of the distribution archive: @@ -40,7 +39,7 @@ PACKAGE = vdr-$(ARCHIVE) ### Includes and Defines (add further entries here): -INCLUDES += -I$(VDRDIR)/include -I$(DVBDIR)/include +INCLUDES += -I$(VDRDIR)/include DEFINES += -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"$(PLUGIN)"' @@ -69,7 +68,7 @@ all: libvdr-$(PLUGIN).so libvdr-$(PLUGIN).so: $(OBJS) $(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@ - @cp $@ $(LIBDIR)/$@.$(VDRVERSION) + @cp $@ $(LIBDIR)/$@.$(APIVERSION) dist: clean @-rm -rf $(TMPDIR)/$(ARCHIVE) |