summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-02-13 10:18:07 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-02-13 10:18:07 +0100
commit20d5179ae4cbea835ca796e32ed8aa36ffe26e3d (patch)
tree752e3898d27dbacb011dea489fefbeffa6e4e8f2 /Makefile
parente972c0464adc6cb21de16867473f3f6ddefcb2bb (diff)
downloadvdr-20d5179ae4cbea835ca796e32ed8aa36ffe26e3d.tar.gz
vdr-20d5179ae4cbea835ca796e32ed8aa36ffe26e3d.tar.bz2
The 'plugins-clean' target of the Makefile now only deletes the actual plugin library files from this version of VDR
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index f70a2e91..59e7e787 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
# See the main source file 'vdr.c' for copyright information and
# how to reach the author.
#
-# $Id: Makefile 1.73 2004/12/18 13:39:19 kls Exp $
+# $Id: Makefile 1.74 2005/02/13 10:13:45 kls Exp $
.DELETE_ON_ERROR:
@@ -71,6 +71,10 @@ DEFINES += -D_GNU_SOURCE
DEFINES += -DVIDEODIR=\"$(VIDEODIR)\"
DEFINES += -DPLUGINDIR=\"$(PLUGINLIBDIR)\"
+# The version number of VDR (taken from VDR's "config.h"):
+
+VDRVERSION = $(shell grep 'define VDRVERSION ' config.h | awk '{ print $$3 }' | sed -e 's/"//g')
+
ifdef VFAT
# for people who want their video directory on a VFAT partition
DEFINES += -DVFAT
@@ -166,7 +170,7 @@ plugins: include-dir
plugins-clean:
@for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do $(MAKE) -C "$(PLUGINDIR)/src/$$i" clean; done
- @-rm -f $(PLUGINLIBDIR)/*
+ @-rm -f $(PLUGINLIBDIR)/libvdr-*.so.$(VDRVERSION)
# Install the files:
@@ -183,7 +187,7 @@ install:
srcdoc:
@cp $(DOXYFILE) $(DOXYFILE).tmp
- @echo PROJECT_NUMBER = `grep VDRVERSION config.h | awk '{ print $$3 }'` >> $(DOXYFILE).tmp
+ @echo PROJECT_NUMBER = $(VDRVERSION) >> $(DOXYFILE).tmp
$(DOXYGEN) $(DOXYFILE).tmp
@rm $(DOXYFILE).tmp