WORKINGDIR := bind/
LINKERNAME := libpg.so
-SONAME := libpg.so.1
-REALNAME := libpg.so.1.0
+SONAME := libpg.so.0
+REALNAME := libpg.so.0.0
TARGETTMP := ${OBJSDIR}${REALNAME}
TARGET := ${WORKINGDIR}${REALNAME}
install:
mkdir -p /usr/include/pg/
cp inc/* /usr/include/pg/
- cp bind/libpg.so /usr/lib/
+ cp -d ${WORKINGDIR}${REALNAME} /usr/lib/
+ cp -d ${WORKINGDIR}${LINKERNAME} /usr/lib/
+ cp -d ${WORKINGDIR}${SONAME} /usr/lib/
uninstall:
rm -rf /usr/include/pg
- rm /usr/lib/libpg.so
+ rm /usr/lib/${REALNAME}
+ rm /usr/lib/${LINKERNAME}
+ rm /usr/lib/${SONAME}
# cause the fancy $$ directory rules to work out
.SECONDEXPANSION:
${TARGET}: ${TARGETTMP} | ${WORKINGDIR}
${Q1}${PRNTFMT} "cp" "$@"
${Q2}cp $< $@
+ ${Q2}ln -s ${REALNAME} ${WORKINGDIR}/${LINKERNAME}
+ ${Q2}ln -s ${REALNAME} ${WORKINGDIR}/${SONAME}
# how to make a directory
${BLDDIRS}: