From ce114b6731a2b9fc825f1c55835d2fad7b18b7ed Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Tue, 25 Oct 2005 15:58:43 +0000 Subject: [PATCH] Added uninstallation rules --- Makefile | 4 ++++ include/Makefile | 3 +++ src/Makefile | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 3c65092..a5bc6a3 100644 --- a/Makefile +++ b/Makefile @@ -40,5 +40,9 @@ dist: distclean src/Makefile \ project.conf \ Makefile + install: all @for i in $(SUBDIRS); do (cd $$i && $(MAKE) install) || exit; done + +uninstall: + @for i in $(SUBDIRS); do (cd $$i && $(MAKE) uninstall) || exit; done diff --git a/include/Makefile b/include/Makefile index 5584e85..6067a1b 100644 --- a/include/Makefile +++ b/include/Makefile @@ -5,4 +5,7 @@ all: clean: distclean: clean + install: all + +uninstall: diff --git a/src/Makefile b/src/Makefile index 5871234..90c5a1a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -52,7 +52,12 @@ clean: distclean: clean $(RM) $(TARGETS) + install: all $(MKDIR) $(DESTDIR)$(LIBDIR) $(INSTALL) -m 0644 libSystem.a $(DESTDIR)$(LIBDIR)/libSystem.a $(INSTALL) -m 0755 libSystem.so $(DESTDIR)$(LIBDIR)/libSystem.so + +uninstall: + $(RM) $(DESTDIR)$(LIBDIR)/libSystem.a + $(RM) $(DESTDIR)$(LIBDIR)/libSystem.so