mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Implemented APIVERSION for the VDR plugin API version number
This commit is contained in:
9
Makefile
9
Makefile
@@ -4,7 +4,7 @@
|
||||
# See the main source file 'vdr.c' for copyright information and
|
||||
# how to reach the author.
|
||||
#
|
||||
# $Id: Makefile 1.86 2006/04/15 12:24:28 kls Exp $
|
||||
# $Id: Makefile 1.87 2006/04/16 09:00:30 kls Exp $
|
||||
|
||||
.DELETE_ON_ERROR:
|
||||
|
||||
@@ -79,9 +79,10 @@ DEFINES += -D_GNU_SOURCE
|
||||
DEFINES += -DVIDEODIR=\"$(VIDEODIR)\"
|
||||
DEFINES += -DPLUGINDIR=\"$(PLUGINLIBDIR)\"
|
||||
|
||||
# The version number of VDR (taken from VDR's "config.h"):
|
||||
# The version numbers of VDR and the plugin API (taken from VDR's "config.h"):
|
||||
|
||||
VDRVERSION = $(shell grep 'define VDRVERSION ' config.h | awk '{ print $$3 }' | sed -e 's/"//g')
|
||||
APIVERSION = $(shell grep 'define APIVERSION ' config.h | awk '{ print $$3 }' | sed -e 's/"//g')
|
||||
|
||||
ifdef VFAT
|
||||
# for people who want their video directory on a VFAT partition
|
||||
@@ -183,7 +184,7 @@ plugins: include-dir
|
||||
|
||||
clean-plugins:
|
||||
@for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do $(MAKE) -C "$(PLUGINDIR)/src/$$i" clean; done
|
||||
@-rm -f $(PLUGINDIR)/lib/libvdr-*.so.$(VDRVERSION)
|
||||
@-rm -f $(PLUGINDIR)/lib/libvdr-*.so.$(APIVERSION)
|
||||
|
||||
# Install the files:
|
||||
|
||||
@@ -215,7 +216,7 @@ install-doc:
|
||||
|
||||
install-plugins: plugins
|
||||
@mkdir -p $(PLUGINLIBDIR)
|
||||
@cp $(PLUGINDIR)/lib/libvdr-*.so.$(VDRVERSION) $(PLUGINLIBDIR)
|
||||
@cp $(PLUGINDIR)/lib/libvdr-*.so.$(APIVERSION) $(PLUGINLIBDIR)
|
||||
|
||||
# Source documentation:
|
||||
|
||||
|
Reference in New Issue
Block a user