diff options
author | Dylan Frese <dmfrese@gmail.com> | 2015-08-12 06:14:48 -0400 |
---|---|---|
committer | Dylan Frese <dmfrese@gmail.com> | 2015-08-12 06:14:48 -0400 |
commit | 34b6068d229efcb934fa40b5f4d47a46cedae552 (patch) | |
tree | edf9693e5ff9d5f3cb1e593923bd8dacd0dd42de /Makefile | |
parent | bfe0583a1264e2b1467942ec33e1fa773d450d9b (diff) | |
download | pianobar-34b6068d229efcb934fa40b5f4d47a46cedae552.tar.gz pianobar-34b6068d229efcb934fa40b5f4d47a46cedae552.tar.bz2 pianobar-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.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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}/ |