Minor tweaks for the fake libgnumalloc stuff. No longer build, install and

then rm the *.a version
This commit is contained in:
peter 1996-09-19 09:36:43 +00:00
parent 421d9828c9
commit 6becb94fb2
2 changed files with 14 additions and 12 deletions

View File

@ -1,19 +1,20 @@
# $Id: Makefile,v 1.3 1996/08/30 01:08:03 peter Exp $
# $Id: Makefile,v 1.4 1996/09/02 13:15:00 phk Exp $
LIB= fakegnumalloc
LIBDIR= /usr/lib/compat
LIB= fakegnumalloc
SHLIBDIR= ${LIBDIR}/compat
INTERNALLIB= yes # Do not build or install lib*.a
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
SRCS= fakegnumalloc.c
NOMAN= 1
afterinstall:
rm -f ${DESTDIR}${LIBDIR}/libfakegnumalloc*.a
rm -f ${DESTDIR}${LIBDIR}/libgnumalloc*
rm -f ${DESTDIR}${SHLIBDIR}/libgnumalloc*
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} )

View File

@ -1,19 +1,20 @@
# $Id: Makefile,v 1.3 1996/08/30 01:08:03 peter Exp $
# $Id: Makefile,v 1.4 1996/09/02 13:15:00 phk Exp $
LIB= fakegnumalloc
LIBDIR= /usr/lib/compat
LIB= fakegnumalloc
SHLIBDIR= ${LIBDIR}/compat
INTERNALLIB= yes # Do not build or install lib*.a
SHLIB_MAJOR= 2
SHLIB_MINOR= 0
SRCS= fakegnumalloc.c
NOMAN= 1
afterinstall:
rm -f ${DESTDIR}${LIBDIR}/libfakegnumalloc*.a
rm -f ${DESTDIR}${LIBDIR}/libgnumalloc*
rm -f ${DESTDIR}${SHLIBDIR}/libgnumalloc*
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} )