Commit 9ade2847 authored by Philipp Ittershagen's avatar Philipp Ittershagen
Browse files

Include ${DESTDIR} in pkgconfig and uninstall rule.

While the ${DESTDIR} variable was honoured when installing the package,
it was not included in the generated pkgconfig file and the uninstall
recipes of the project's Makefile.

Signed-off-by: default avatarPhilipp Ittershagen <>
parent 783ffc71
......@@ -86,8 +86,8 @@ ${BUILDDIR}/${PROJECT}.pc: ${PROJECTNV}
@mkdir -p ${BUILDDIR}
$(QUIET)sed -e 's,@PROJECT@,${PROJECT},' \
-e 's,@VERSION@,${VERSION},' \
-e 's,@LIBDIR@,${LIBDIR},' \
-e 's,@LIBDIR@,${DESTDIR}${LIBDIR},' \
${PROJECTNV} > $@.tmp
$(QUIET)mv $@.tmp $@
......@@ -274,9 +274,9 @@ uninstall: uninstall-headers
$(call colorecho,UNINSTALL,"Remove header files")
$(QUIET)rm -rf ${INCLUDEDIR}/girara
$(QUIET)rm -rf ${DESTDIR}${INCLUDEDIR}/girara
$(call colorecho,UNINSTALL,"Remove pkg-config file")
$(QUIET)rm -f ${LIBDIR}/pkgconfig/${PROJECT}.pc
$(QUIET)rm -f ${DESTDIR}${LIBDIR}/pkgconfig/${PROJECT}.pc
.PHONY: all options clean debug doc test dist install install-headers uninstall \
uninstall-headers ${PROJECT} ${PROJECT}-debug po update-po \
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment