OSSP CVS Repository

ossp - Check-in [1233]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1233
Date: 2001-Oct-31 20:52:21 (local)
2001-Oct-31 19:52:21 (UTC)
User:rse
Branch:
Comment: provide uninstall target
Tickets:
Inspections:
Files:
ossp-pkg/sa/Makefile.in      1.9 -> 1.10     17 inserted, 5 deleted

ossp-pkg/sa/Makefile.in 1.9 -> 1.10

--- Makefile.in  2001/10/24 13:40:07     1.9
+++ Makefile.in  2001/10/31 19:52:21     1.10
@@ -44,8 +44,10 @@
 LDFLAGS     = @LDFLAGS@
 LIBS        = @LIBS@
 RM          = rm -f
+RMDIR       = rmdir
 SHTOOL      = ./shtool
 LIBTOOL     = ./libtool
+TRUE        = true
 
 LIB_NAME    = libsa.la
 LIB_OBJS    = sa.lo
@@ -75,17 +77,27 @@
         @$(LIBTOOL) --mode=execute ./$(TST_NAME)
 
 install:
-        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)
-        @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libsa.la $(DESTDIR)$(libdir)/
-        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir)
-        $(SHTOOL) install -c -m 644 sa.h $(DESTDIR)$(includedir)/
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix)
         $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir)
+        $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)
         $(SHTOOL) install -c -m 755 sa-config $(DESTDIR)$(bindir)/
+        $(SHTOOL) install -c -m 644 sa.h $(DESTDIR)$(includedir)/
+        @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libsa.la $(DESTDIR)$(libdir)/
+
+uninstall:
+        @$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libsa.la
+        -$(RM) $(DESTDIR)$(includedir)/sa.h
+        -$(RM) $(DESTDIR)$(bindir)/sa-config
+        -$(RMDIR) $(DESTDIR)$(libdir) >/dev/null 2>&1 || $(TRUE)
+        -$(RMDIR) $(DESTDIR)$(includedir) >/dev/null 2>&1 || $(TRUE)
+        -$(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE)
+        -$(RMDIR) $(DESTDIR)$(prefix) >/dev/null 2>&1 || $(TRUE)
 
 clean:
         -$(RM) $(LIB_NAME) $(LIB_OBJS)
         -$(RM) $(TST_NAME) $(TST_OBJS)
-        -$(RM) -r .libs >/dev/null 2>&1
+        -$(RM) -r .libs >/dev/null 2>&1 || $(TRUE)
         -$(RM) *.o *.lo
 
 distclean: clean

CVSTrac 2.0.1