diff --git a/support/configure.inc b/support/configure.inc index 42757e3d..d2a5e9fb 100644 --- a/support/configure.inc +++ b/support/configure.inc @@ -334,10 +334,10 @@ ARCH = ${ARCH} CFLAGS += ${CFLAGS} LDFLAGS += ${LDFLAGS} prefix = ${prefix} -bindir = \${DESTDIR}${bindir} -mandir = \${DESTDIR}${mandir} -datadir = \${DESTDIR}${datadir} -libdir = \${DESTDIR}${libdir} +bindir = ${bindir} +mandir = ${mandir} +datadir = ${datadir} +libdir = ${libdir} EOF # Create C include diff --git a/support/posix.mk b/support/posix.mk index c292bbe4..62819206 100644 --- a/support/posix.mk +++ b/support/posix.mk @@ -5,15 +5,15 @@ INSTICON= ${DESTDIR}$(prefix)/share/icons/hicolor/scalable/apps install: ${PROG} ${MAN} - install -D ${PROG} ${bindir}/tvheadend - install -D ${MAN} ${mandir}/tvheadend.1 + install -D ${PROG} ${DESTDIR}${bindir}/tvheadend + install -D ${MAN} ${DESTDIR}${mandir}/tvheadend.1 for bundle in ${BUNDLES}; do \ - mkdir -p ${datadir}/tvheadend/$$bundle ;\ - cp -r $$bundle/* ${datadir}/tvheadend/$$bundle ;\ + mkdir -p ${DESTDIR}${datadir}/tvheadend/$$bundle ;\ + cp -r $$bundle/* ${DESTDIR}${datadir}/tvheadend/$$bundle ;\ done uninstall: - rm -f ${bindir)/tvheadend - rm -f ${mandir)/tvheadend.1 + rm -f ${DESTDIR}${bindir)/tvheadend + rm -f ${DESTDIR}${mandir)/tvheadend.1