From 63b16ce89e765c8f50578150a2c6353ddaf3caf2 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 27 Sep 1996 12:10:14 +0000 Subject: Don't rely on LIBDIR having been equal to SHLIBDIR on Bruce's suggestion. Set ORIG_SHLIBDIR to the expanded value of ${SHLIBDIR}, and use that as a base to modify the new SHLIBDIR without getting infinite recursion. --- lib/libgnumalloc/Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/libgnumalloc') diff --git a/lib/libgnumalloc/Makefile b/lib/libgnumalloc/Makefile index f461027..ca6b574 100644 --- a/lib/libgnumalloc/Makefile +++ b/lib/libgnumalloc/Makefile @@ -1,7 +1,6 @@ -# $Id: Makefile,v 1.6 1996/09/26 14:22:32 peter Exp $ +# $Id: Makefile,v 1.7 1996/09/27 06:58:03 peter Exp $ LIB= gnumalloc -SHLIBDIR= ${LIBDIR}/compat INTERNALLIB= yes # Do not build or install lib*.a SHLIB_MAJOR= 2 SHLIB_MINOR= 0 @@ -17,7 +16,9 @@ SRCS= cfree.c # you to run programs that were linked with -lgnumalloc (such as XFree86). # beforeinstall: - rm -f ${DESTDIR}${LIBDIR}/libgnumalloc.a - rm -f ${DESTDIR}${LIBDIR}/libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} + rm -f ${DESTDIR}${ORIG_SHLIBDIR}/libgnumalloc.a + rm -f ${DESTDIR}${ORIG_SHLIBDIR}/libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} .include +ORIG_SHLIBDIR:= ${SHLIBDIR} +SHLIBDIR= ${ORIG_SHLIBDIR}/compat -- cgit v1.1