diff options
| author | Antti Ajanki <antti.ajanki@iki.fi> | 2010-09-04 09:47:58 +0300 |
|---|---|---|
| committer | Antti Ajanki <antti.ajanki@iki.fi> | 2010-09-04 09:47:58 +0300 |
| commit | 51ebf416235b616e4ef747d3bac9fa2dd9af9846 (patch) | |
| tree | 78092bd3c2e90c14f11d6ef35a6aaf9010ea5584 /Makefile | |
| parent | b7e902f9cd53fc3a116daaa049ac44878ab858de (diff) | |
| download | vdr-plugin-webvideo-51ebf416235b616e4ef747d3bac9fa2dd9af9846.tar.gz vdr-plugin-webvideo-51ebf416235b616e4ef747d3bac9fa2dd9af9846.tar.bz2 | |
Patches by Ville Skyttä: templatepath in webvi.plugin.conf, DESTDIR in
Makefile, fix typos
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 30 |
1 files changed, 14 insertions, 16 deletions
@@ -26,7 +26,7 @@ all-noinstall: libwebvi vdr-plugin all: libwebvi vdr-plugin $(LIBDIR)/libvdr-webvideo.so.$(APIVERSION) webvi.conf vdr-plugin: libwebvi - $(MAKE) -C src/vdr-plugin LOCALEDIR=./locale LIBDIR=. VDRDIR=$(VDRDIR) CXXFLAGS="-fPIC -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses" + $(MAKE) -C src/vdr-plugin LOCALEDIR=./locale LIBDIR=. VDRDIR=$(VDRDIR) CXXFLAGS="-fPIC -g -O2 -Wall -Woverloaded-virtual -Wno-parentheses $(CXXFLAGS)" libwebvi: build-python $(MAKE) -C src/libwebvi all libwebvi.a @@ -34,32 +34,30 @@ libwebvi: build-python build-python: webvi.conf python setup.py build -webvi.conf: - sed 's_templatepath = /usr/local/share/webvi/templates_templatepath = $(PREFIX)/share/webvi/templates_g' < examples/webvi.conf > webvi.conf - -webvi.plugin.conf: - cp -f examples/webvi.plugin.conf webvi.plugin.conf +webvi.conf webvi.plugin.conf: %.conf: examples/%.conf + sed 's_templatepath = /usr/local/share/webvi/templates_templatepath = $(PREFIX)/share/webvi/templates_g' < $< > $@ $(VDRPLUGINDIR)/libvdr-webvideo.so.$(APIVERSION): vdr-plugin - mkdir -p $(VDRPLUGINDIR) - cp -f src/vdr-plugin/libvdr-webvideo.so.$(APIVERSION) $(VDRPLUGINDIR)/libvdr-webvideo.so.$(APIVERSION) + mkdir -p $(DESTDIR)$(VDRPLUGINDIR) + cp -f src/vdr-plugin/libvdr-webvideo.so.$(APIVERSION) $(DESTDIR)$(VDRPLUGINDIR)/libvdr-webvideo.so.$(APIVERSION) install-vdr-plugin: vdr-plugin $(VDRPLUGINDIR)/libvdr-webvideo.so.$(APIVERSION) - mkdir -p $(VDRLOCALEDIR) - cp -rf src/vdr-plugin/locale/* $(VDRLOCALEDIR) - mkdir -p $(VDRPLUGINCONFDIR)/webvideo - cp -f src/vdr-plugin/mime.types $(VDRPLUGINCONFDIR)/webvideo + mkdir -p $(DESTDIR)$(VDRLOCALEDIR) + cp -rf src/vdr-plugin/locale/* $(DESTDIR)$(VDRLOCALEDIR) + mkdir -p $(DESTDIR)$(VDRPLUGINCONFDIR)/webvideo + cp -f src/vdr-plugin/mime.types $(DESTDIR)$(VDRPLUGINCONFDIR)/webvideo install-libwebvi: libwebvi $(MAKE) -C src/libwebvi install install-python: - python setup.py install --prefix $(PREFIX) + python setup.py install --skip-build --prefix $(PREFIX) $${DESTDIR:+--root $(DESTDIR)} install-conf: webvi.conf webvi.plugin.conf - cp -f webvi.conf /etc/ - mkdir -p $(VDRPLUGINCONFDIR)/webvideo - cp -f webvi.plugin.conf $(VDRPLUGINCONFDIR)/webvideo + mkdir -p $(DESTDIR)/etc + cp -f webvi.conf $(DESTDIR)/etc + mkdir -p $(DESTDIR)$(VDRPLUGINCONFDIR)/webvideo + cp -f webvi.plugin.conf $(DESTDIR)$(VDRPLUGINCONFDIR)/webvideo install-webvi: install-libwebvi install-python |
