summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-07-06 20:38:03 +0200
committerMichael Adam <obnox@samba.org>2008-07-07 20:34:00 +0200
commitc1dcbf9da4b019bd6a07644559992ce64fa14552 (patch)
treebbe1ad5252e0d7e4f32783d2a6390dbe26030879
parentcc20a6ba9d94ac90524dab7eb110255e773a9e07 (diff)
downloadsamba-c1dcbf9da4b019bd6a07644559992ce64fa14552.tar.gz
samba-c1dcbf9da4b019bd6a07644559992ce64fa14552.tar.xz
samba-c1dcbf9da4b019bd6a07644559992ce64fa14552.zip
build: fix uninstalllibnetapi target - handle symlink libnetapi.so
and use the defined variables instead of hardcoded bits. Also move the target into the libnetapi section (forgotten last time). Michael (This used to be commit 21b6164795344cea45161bc01828ec1127b5b6ab)
-rw-r--r--source3/Makefile.in11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/Makefile.in b/source3/Makefile.in
index 1798a72657f..e401e000b33 100644
--- a/source3/Makefile.in
+++ b/source3/Makefile.in
@@ -1805,6 +1805,12 @@ installlibnetapi:: installdirs libnetapi
@$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) ${prefix}/include
-$(INSTALLCMD) -m $(INSTALLPERMS_DATA) $(srcdir)/lib/netapi/netapi.h $(DESTDIR)${prefix}/include
+uninstalllibnetapi::
+ -rm -f $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET)`
+ -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_SHARED_TARGET_SONAME)`
+ -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/`basename $(LIBNETAPI_STATIC_TARGET)`
+ -rm -f $(DESTDIR)${prefix}/include/netapi.h
+
#-------------------------------------------------------------------
#
@@ -2431,11 +2437,6 @@ uninstalllibaddns::
-$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libaddns.@SHLIBEXT@
-$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libaddns.a
-uninstalllibnetapi::
- -$(UNINSTALLLIBCMD_SH) $(DESTDIR)$(LIBDIR)/libnetapi.@SHLIBEXT@
- -$(UNINSTALLLIBCMD_A) $(DESTDIR)$(LIBDIR)/libnetapi.a
- -rm -f $(DESTDIR)${prefix}/include/netapi.h
-
uninstallpammodules::
@for module in $(PAM_MODULES); do \
echo "Removing $(DESTDIR)/$(PAMMODULESDIR)/$${module}.@SHLIBEXT@ "; \