Fix installation with --disable-static

If --disable-static is passed to configure, then .a files won't be built
or installed. Make removing them in install-exec-hook not fatal if they
don't exist.
This commit is contained in:
Owen W. Taylor 2008-10-29 11:58:43 -04:00
parent b5ac24e9c1
commit 783e51281a

View File

@ -16,7 +16,7 @@ pkglib_LTLIBRARIES = default.la
# (There is no way to stop libtool generating static libs locally, and we # (There is no way to stop libtool generating static libs locally, and we
# cannot do this globally because of libmetacity-private.so). # cannot do this globally because of libmetacity-private.so).
install-exec-hook: install-exec-hook:
rm $(DESTDIR)$(pkglibdir)/*.a -rm $(DESTDIR)$(pkglibdir)/*.a
rm $(DESTDIR)$(pkglibdir)/*.la -rm $(DESTDIR)$(pkglibdir)/*.la
endif endif