Move use of DESTDIR from config.mk to posix.mk. Makes much more sense that way.

This commit is contained in:
Adam Sutton 2012-08-17 21:18:53 +01:00
parent 7f9930eca1
commit b709427f3e
2 changed files with 10 additions and 10 deletions

View file

@ -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

View file

@ -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