+1998-03-31 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * Makefile.bsd-lib, Makefile.dll-lib, Makefile.elf-lib,
+ Makefile.profile: Change to use new installation directory
+ variables convention. Add uninstall rules.
+
1998-03-28 Theodore Ts'o <tytso@rsts-11.mit.edu>
* Makefile.elf-lib (installdirs): Change use of DLL_INSTALL_DIR to
$(LN) $(BSD_LIB) ../$(BSD_LIB)
install-shlibs install:: $(BSD_LIB)
- $(INSTALL_PROGRAM) $(BSD_LIB) $(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
+ $(INSTALL_PROGRAM) $(BSD_LIB) \
+ $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
-ldconfig
+uninstall-shlibs uninstall::
+ $(RM) -f $(DESTDIR)$(BSDLIB_INSTALL_DIR)/$(BSD_LIB)
+
clean::
$(RM) -rf pic
$(RM) -f $(BSD_LIB)
$(STRIP) $(DESTDIR)$(DLL_INSTALL_DIR)/$(DLL_IMAGE).so.$(DLL_VERSION)
-ldconfig
+uninstall-shlibs unistall::
+ $(RM) $(DESTDIR)$(DLL_INSTALL_DIR)/$(DLL_IMAGE).so.$(DLL_VERSION)
+
install:: $(DLL_STUB).sa
- $(INSTALL_DATA) $(DLL_STUB).sa $(DESTDIR)$(ulibdir)/$(DLL_STUB).sa
- $(CHMOD) 644 $(DESTDIR)$(ulibdir)/$(DLL_STUB).sa
- $(RANLIB) $(DESTDIR)$(ulibdir)/$(DLL_STUB).sa
- $(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/$(DLL_STUB).sa
+ $(INSTALL_DATA) $(DLL_STUB).sa $(DESTDIR)$(libdir)/$(DLL_STUB).sa
+ $(CHMOD) 644 $(DESTDIR)$(libdir)/$(DLL_STUB).sa
+ $(RANLIB) $(DESTDIR)$(libdir)/$(DLL_STUB).sa
+ $(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/$(DLL_STUB).sa
clean::
$(RM) -f ../$(DLL_STUB).sa $(DLL_STUB).sa \
installdirs-elf-lib::
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(ELF_INSTALL_DIR) \
- $(DESTDIR)$(ulibdir)
+ $(DESTDIR)$(libdir)
installdirs:: installdirs-elf-lib
$(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_LIB)
$(LN_S) -f $(ELF_LIB) $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_SONAME)
$(LN_S) -f $(ELF_INSTALL_DIR)/$(ELF_SONAME) \
- $(DESTDIR)$(ulibdir)/$(ELF_IMAGE).so
+ $(DESTDIR)$(libdir)/$(ELF_IMAGE).so
+ -ldconfig
+
+uninstall-shlibs uninstall::
+ $(RM) -f $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_LIB) \
+ $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_SONAME) \
+ $(DESTDIR)$(libdir)/$(ELF_IMAGE).so
-ldconfig
clean::
$(LN) $@ ../$@
install:: $(LIBRARY)_p.a installdirs
- $(INSTALL_DATA) $(LIBRARY)_p.a $(DESTDIR)$(ulibdir)/$(LIBRARY)_p.a
- $(CHMOD) 644 $(DESTDIR)$(ulibdir)/$(LIBRARY)_p.a
- -$(RANLIB) $(DESTDIR)$(ulibdir)/$(LIBRARY)_p.a
- $(CHMOD) $(LIBMODE) $(DESTDIR)$(ulibdir)/$(LIBRARY)_p.a
+ $(INSTALL_DATA) $(LIBRARY)_p.a $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
+ $(CHMOD) 644 $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
+ -$(RANLIB) $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
+ $(CHMOD) $(LIBMODE) $(DESTDIR)$(libdir)/$(LIBRARY)_p.a
+
+uninstall::
+ $(RM) -f $(DESTDIR)$(libdir)/$(LIBRARY)_p.a