.PHONY: all
all: ${TARGET}
-# a quick install and uninstall instructions
+INSTALL := install
+
+# HACK install
install:
- mkdir -p /usr/include/pg/
- cp inc/* /usr/include/pg/
- cp -d ${WORKINGDIR}${REALNAME} /usr/lib/
- cp -d ${WORKINGDIR}${LINKERNAME} /usr/lib/
- cp -d ${WORKINGDIR}${SONAME} /usr/lib/
+ ${INSTALL} -d /usr/include/pg/
+ ${INSTALL} -t /usr/include/pg/ inc/*
+ ${INSTALL} -t /usr/lib ${WORKINGDIR}${REALNAME}
+ ln -sfn ${REALNAME} /usr/lib/${LINKERNAME}
+ ln -sfn ${REALNAME} /usr/lib/${SONAME}
+# HACK uninstall
uninstall:
rm -rf /usr/include/pg
rm /usr/lib/${REALNAME}
${TARGET}: ${TARGETTMP} | ${WORKINGDIR}
${Q1}${PRNTFMT} "cp" "$@"
${Q2}cp $< $@
- ${Q2}ln -sfn ${REALNAME} ${WORKINGDIR}/${LINKERNAME}
- ${Q2}ln -sfn ${REALNAME} ${WORKINGDIR}/${SONAME}
# how to make a directory
${BLDDIRS}: