mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed handling default values for directories
This commit is contained in:
parent
e6e9996060
commit
3d60eba129
22
Makefile
22
Makefile
@ -4,7 +4,7 @@
|
|||||||
# See the main source file 'vdr.c' for copyright information and
|
# See the main source file 'vdr.c' for copyright information and
|
||||||
# how to reach the author.
|
# how to reach the author.
|
||||||
#
|
#
|
||||||
# $Id: Makefile 2.28 2012/09/01 13:22:33 kls Exp $
|
# $Id: Makefile 2.29 2012/09/09 09:29:15 kls Exp $
|
||||||
|
|
||||||
.DELETE_ON_ERROR:
|
.DELETE_ON_ERROR:
|
||||||
|
|
||||||
@ -76,6 +76,12 @@ DEFINES += -DRESDIR=\"$(RESDIR)\"
|
|||||||
DEFINES += -DPLUGINDIR=\"$(PLUGINLIBDIR)\"
|
DEFINES += -DPLUGINDIR=\"$(PLUGINLIBDIR)\"
|
||||||
DEFINES += -DLOCDIR=\"$(LOCDIR)\"
|
DEFINES += -DLOCDIR=\"$(LOCDIR)\"
|
||||||
|
|
||||||
|
# Default values for directories:
|
||||||
|
|
||||||
|
CONFDIRDEF = $(firstword $(CONFDIR) $(VIDEODIR))
|
||||||
|
CACHEDIRDEF = $(firstword $(CACHEDIR) $(VIDEODIR))
|
||||||
|
RESDIRDEF = $(firstword $(RESDIR) $(CONFDIRDEF))
|
||||||
|
|
||||||
# The version numbers of VDR and the plugin API (taken from VDR's "config.h"):
|
# The version numbers of VDR and the plugin API (taken from VDR's "config.h"):
|
||||||
|
|
||||||
VDRVERSION = $(shell sed -ne '/define VDRVERSION/s/^.*"\(.*\)".*$$/\1/p' config.h)
|
VDRVERSION = $(shell sed -ne '/define VDRVERSION/s/^.*"\(.*\)".*$$/\1/p' config.h)
|
||||||
@ -112,10 +118,10 @@ $(SILIB):
|
|||||||
vdr.pc: Makefile Make.global
|
vdr.pc: Makefile Make.global
|
||||||
@echo "bindir=$(BINDIR)" > $@
|
@echo "bindir=$(BINDIR)" > $@
|
||||||
@echo "includedir=$(INCDIR)" >> $@
|
@echo "includedir=$(INCDIR)" >> $@
|
||||||
@echo "configdir=$(CONFDIR)" >> $@
|
@echo "configdir=$(CONFDIRDEF)" >> $@
|
||||||
@echo "videodir=$(VIDEODIR)" >> $@
|
@echo "videodir=$(VIDEODIR)" >> $@
|
||||||
@echo "cachedir=$(CACHEDIR)" >> $@
|
@echo "cachedir=$(CACHEDIRDEF)" >> $@
|
||||||
@echo "resdir=$(RESDIR)" >> $@
|
@echo "resdir=$(RESDIRDEF)" >> $@
|
||||||
@echo "plugindir=$(PLUGINLIBDIR)" >> $@
|
@echo "plugindir=$(PLUGINLIBDIR)" >> $@
|
||||||
@echo "localedir=$(LOCDIR)" >> $@
|
@echo "localedir=$(LOCDIR)" >> $@
|
||||||
@echo "apiversion=$(APIVERSION)" >> $@
|
@echo "apiversion=$(APIVERSION)" >> $@
|
||||||
@ -200,12 +206,12 @@ install-bin: vdr
|
|||||||
|
|
||||||
install-dirs:
|
install-dirs:
|
||||||
@mkdir -p $(DESTDIR)$(VIDEODIR)
|
@mkdir -p $(DESTDIR)$(VIDEODIR)
|
||||||
@mkdir -p $(DESTDIR)$(CONFDIR)
|
@mkdir -p $(DESTDIR)$(CONFDIRDEF)
|
||||||
@mkdir -p $(DESTDIR)$(CACHEDIR)
|
@mkdir -p $(DESTDIR)$(CACHEDIRDEF)
|
||||||
@mkdir -p $(DESTDIR)$(RESDIR)
|
@mkdir -p $(DESTDIR)$(RESDIRDEF)
|
||||||
|
|
||||||
install-conf:
|
install-conf:
|
||||||
@cp *.conf $(DESTDIR)$(CONFDIR)
|
@cp *.conf $(DESTDIR)$(CONFDIRDEF)
|
||||||
|
|
||||||
|
|
||||||
# Documentation:
|
# Documentation:
|
||||||
|
Loading…
Reference in New Issue
Block a user