From 34b6068d229efcb934fa40b5f4d47a46cedae552 Mon Sep 17 00:00:00 2001 From: Dylan Frese Date: Wed, 12 Aug 2015 06:14:48 -0400 Subject: Change ln -s to ln -fs in Makefile The -f/--force flag allows ln to overwrite its target if it already exists instead of exiting with an error. Before, make install-libpiano and make libpiano would error on a rebuild. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 1667277..78f1d43 100644 --- a/Makefile +++ b/Makefile @@ -100,8 +100,8 @@ libpiano.so.0: ${LIBPIANO_RELOBJ} ${LIBPIANO_HDR} ${LIBPIANO_OBJ} @echo " LINK $@" @${CC} -shared -Wl,-soname,libpiano.so.0 -o libpiano.so.0.0.0 \ ${LIBPIANO_RELOBJ} ${ALL_LDFLAGS} - @ln -s libpiano.so.0.0.0 libpiano.so.0 - @ln -s libpiano.so.0 libpiano.so + @ln -fs libpiano.so.0.0.0 libpiano.so.0 + @ln -fs libpiano.so.0 libpiano.so @echo " AR libpiano.a" @${AR} rcs libpiano.a ${LIBPIANO_OBJ} @@ -140,8 +140,8 @@ endif install-libpiano: install -d ${DESTDIR}${LIBDIR}/ install -m644 libpiano.so.0.0.0 ${DESTDIR}${LIBDIR}/ - ln -s libpiano.so.0.0.0 ${DESTDIR}${LIBDIR}/libpiano.so.0 - ln -s libpiano.so.0 ${DESTDIR}${LIBDIR}/libpiano.so + ln -fs libpiano.so.0.0.0 ${DESTDIR}${LIBDIR}/libpiano.so.0 + ln -fs libpiano.so.0 ${DESTDIR}${LIBDIR}/libpiano.so install -m644 libpiano.a ${DESTDIR}${LIBDIR}/ install -d ${DESTDIR}${INCDIR}/ install -m644 src/libpiano/piano.h ${DESTDIR}${INCDIR}/ -- cgit v1.2.3