Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Makefile install modifications
I have modified VDR Makefile to allow installation into alternate root
with make install DESTDIR=/path/to/alternate/root to ease rpm-building.
I also created plugins-install to copy plugins into correct place. If
this doesn't introduce any new problems, could this be included into VDR
distribution?
--- Makefile 2003-08-09 14:09:45.000000000 +0300
+++ /usr/src/redhat/BUILD/vdr-1.2.3/Makefile 2003-08-17
21:35:34.000000000 +0300
@@ -118,15 +118,30 @@
@for i in `ls $(PLUGINDIR)/src | grep -v '[^a-z0-9]'`; do
$(MAKE) -C "$(PLUGINDIR)/src/$$i" clean; done
@-rm -f $(PLUGINLIBDIR)/*
+plugins-install:
+ @if [ ! -d $(DESTDIR)$(PLUGINLIBDIR) ]; then\
+ mkdir -p $(DESTDIR)$(PLUGINLIBDIR);\
+ fi
+ @cp PLUGINS/src/*/*.so $(DESTDIR)$(PLUGINLIBDIR)
+
# Install the files:
install:
- @cp vdr runvdr $(BINDIR)
- @gzip -c vdr.1 > $(MANDIR)/man1/vdr.1.gz
- @gzip -c vdr.5 > $(MANDIR)/man5/vdr.5.gz
- @if [ ! -d $(VIDEODIR) ]; then\
- mkdir $(VIDEODIR);\
- cp *.conf $(VIDEODIR);\
+ @if [ ! -d $(DESTDIR)$(BINDIR) ]; then\
+ mkdir -p $(DESTDIR)$(BINDIR);\
+ fi
+ @cp vdr runvdr $(DESTDIR)$(BINDIR)
+
+ @if [ ! -d $(DESTDIR)$(MANDIR) ]; then\
+ mkdir -p $(DESTDIR)$(MANDIR)/man1;\
+ mkdir $(DESTDIR)$(MANDIR)/man5;\
+ fi
+ @gzip -c vdr.1 > $(DESTDIR)$(MANDIR)/man1/vdr.1.gz
+ @gzip -c vdr.5 > $(DESTDIR)$(MANDIR)/man5/vdr.5.gz
+
+ @if [ ! -d $(DESTDIR)$(VIDEODIR) ]; then\
+ mkdir $(DESTDIR)$(VIDEODIR);\
+ cp *.conf $(DESTDIR)$(VIDEODIR);\
fi
# Source documentation:
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index