From 2d826eee1cce0bd510398b49ef759e9a610f911f Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 12 Feb 1996 12:40:04 +0000 Subject: Some fixes: - shared libraries are in ${SHLIBDIR}, not necessarily in ${LIBDIR}. - don't remove or create any shared library versions except 2.0. and improvements: - don't use rm -r. - indent the long shell command. Submitted by: bde --- lib/libfakegnumalloc/Makefile | 17 ++++++++++------- lib/libgnumalloc/Makefile | 17 ++++++++++------- 2 files changed, 20 insertions(+), 14 deletions(-) (limited to 'lib') diff --git a/lib/libfakegnumalloc/Makefile b/lib/libfakegnumalloc/Makefile index c8dbdff..35f80db 100644 --- a/lib/libfakegnumalloc/Makefile +++ b/lib/libfakegnumalloc/Makefile @@ -1,16 +1,19 @@ -# $Id$ +# $Id: Makefile,v 1.1 1996/02/11 18:12:41 phk Exp $ LIB= fakegnumalloc +SHLIB_MAJOR= 2 +SHLIB_MINOR= 0 SRCS= fakegnumalloc.c NOMAN= 1 afterinstall: rm -f ${DESTDIR}${LIBDIR}/libfakegnumalloc*.a - for i in ${DESTDIR}/var/db/pkg/gnumalloc* ; \ - do if [ -d $$i ] ; then exit 0 ; fi ; done && \ - ( cd ${DESTDIR}${LIBDIR} && \ - rm -rf libgnumalloc* && \ - ln -fs libfakegnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ - libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ) + for i in ${DESTDIR}/var/db/pkg/gnumalloc* ; do \ + if [ -d $$i ] ; then exit 0 ; fi ; \ + done && \ + ( cd ${DESTDIR}${SHLIBDIR} && \ + rm -f libgnumalloc.so.SHLIB_MAJOR}.${SHLIB_MINOR} && \ + ln -fs libfakegnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ + libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ) .include diff --git a/lib/libgnumalloc/Makefile b/lib/libgnumalloc/Makefile index c8dbdff..35f80db 100644 --- a/lib/libgnumalloc/Makefile +++ b/lib/libgnumalloc/Makefile @@ -1,16 +1,19 @@ -# $Id$ +# $Id: Makefile,v 1.1 1996/02/11 18:12:41 phk Exp $ LIB= fakegnumalloc +SHLIB_MAJOR= 2 +SHLIB_MINOR= 0 SRCS= fakegnumalloc.c NOMAN= 1 afterinstall: rm -f ${DESTDIR}${LIBDIR}/libfakegnumalloc*.a - for i in ${DESTDIR}/var/db/pkg/gnumalloc* ; \ - do if [ -d $$i ] ; then exit 0 ; fi ; done && \ - ( cd ${DESTDIR}${LIBDIR} && \ - rm -rf libgnumalloc* && \ - ln -fs libfakegnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ - libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ) + for i in ${DESTDIR}/var/db/pkg/gnumalloc* ; do \ + if [ -d $$i ] ; then exit 0 ; fi ; \ + done && \ + ( cd ${DESTDIR}${SHLIBDIR} && \ + rm -f libgnumalloc.so.SHLIB_MAJOR}.${SHLIB_MINOR} && \ + ln -fs libfakegnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ + libgnumalloc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ) .include -- cgit v1.1