summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Frese <dmfrese@gmail.com>2015-08-12 06:14:48 -0400
committerDylan Frese <dmfrese@gmail.com>2015-08-12 06:14:48 -0400
commit34b6068d229efcb934fa40b5f4d47a46cedae552 (patch)
treeedf9693e5ff9d5f3cb1e593923bd8dacd0dd42de
parentbfe0583a1264e2b1467942ec33e1fa773d450d9b (diff)
downloadpianobar-windows-34b6068d229efcb934fa40b5f4d47a46cedae552.tar.gz
pianobar-windows-34b6068d229efcb934fa40b5f4d47a46cedae552.tar.bz2
pianobar-windows-34b6068d229efcb934fa40b5f4d47a46cedae552.zip
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.
-rw-r--r--Makefile8
1 files 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}/