author | Alberto Bertogli
<albertito@blitiri.com.ar> 2009-10-15 22:44:12 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2009-10-15 22:44:12 UTC |
parent | 8b795ac3b065ed303b0cb739bf93faa667758051 |
Makefile | +16 | -4 |
libfiu/Makefile | +20 | -1 |
preload/Makefile | +10 | -3 |
preload/posix/Makefile | +4 | -1 |
preload/run/Makefile | +6 | -1 |
utils/Makefile | +7 | -1 |
diff --git a/Makefile b/Makefile index 4aa8326..9d418e1 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,14 @@ default: all install: all_install +uninstall: all_uninstall + all: libfiu preload utils all_install: libfiu_install preload_install utils_install +all_uninstall: libfiu_uninstall preload_uninstall utils_uninstall + libfiu: $(MAKE) -C libfiu @@ -18,6 +22,8 @@ libfiu_clean: libfiu_install: $(MAKE) -C libfiu install +libfiu_uninstall: + $(MAKE) -C libfiu uninstall preload: libfiu @@ -29,6 +35,9 @@ preload_clean: preload_install: preload $(MAKE) -C preload install +preload_uninstall: + $(MAKE) -C preload uninstall + utils: $(MAKE) -C utils @@ -39,6 +48,9 @@ utils_clean: utils_install: utils $(MAKE) -C utils install +utils_uninstall: + $(MAKE) -C utils uninstall + bindings: python2 python3 @@ -65,11 +77,11 @@ python_clean: clean: python_clean preload_clean libfiu_clean utils_clean -.PHONY: default all clean install all_install \ - libfiu libfiu_clean libfiu_install \ +.PHONY: default all clean install all_install uninstall all_uninstall \ + libfiu libfiu_clean libfiu_install libfiu_uninstall \ python2 python2_install python3 python3_install python_clean \ bindings bindings_install bindings_clean \ - preload preload_clean preload_install \ - utils utils_clean utils_install + preload preload_clean preload_install preload_uninstall \ + utils utils_clean utils_install utils_uninstall diff --git a/libfiu/Makefile b/libfiu/Makefile index 5730cb2..55548d6 100644 --- a/libfiu/Makefile +++ b/libfiu/Makefile @@ -79,6 +79,22 @@ install-man: install: install-lib install-man +uninstall-lib: + $(RM) $(PREFIX)/lib/libfiu.so + $(RM) $(PREFIX)/lib/libfiu.so.$(LIB_VER) + $(RM) $(PREFIX)/lib/libfiu.so.$(LIB_SO_VER) + $(RM) $(PREFIX)/lib/libfiu.a + $(RM) $(PREFIX)/include/fiu.h + $(RM) $(PREFIX)/include/fiu-control.h + $(RM) $(PREFIX)/include/fiu-local.h + $(RM) $(PREFIX)/lib/pkgconfig/libfiu.pc + +uninstall-man: + $(RM) $(PREFIX)/share/man/man3/libfiu.3 + +uninstall: uninstall-lib uninstall-man + + BF = $(ALL_CFLAGS) ~ $(PREFIX) build-flags: .force-build-flags @if [ x"$(BF)" != x"`cat build-flags 2>/dev/null`" ]; then \ @@ -97,7 +113,10 @@ clean: rm -f libfiu.pc $(OBJS) libfiu.so libfiu.so.$(LIB_VER) libfiu.a rm -f *.bb *.bbg *.da *.gcov *.gcda *.gcno gmon.out build-flags -.PHONY: default all libs install-lib install-man install clean \ +.PHONY: default all libs \ + install-lib install-man install \ + uninstall-lib uninstall-man uninstall \ + clean \ .force-build-flags diff --git a/preload/Makefile b/preload/Makefile index a575d71..9eb3b96 100644 --- a/preload/Makefile +++ b/preload/Makefile @@ -5,6 +5,8 @@ all: posix run install: posix_install run_install +uninstall: posix_uninstall run_uninstall + clean: posix_clean run_clean @@ -17,6 +19,9 @@ posix_clean: posix_install: $(MAKE) -C posix/ install +posix_uninstall: + $(MAKE) -C posix/ uninstall + run: $(MAKE) -C run/ @@ -26,9 +31,11 @@ run_clean: run_install: $(MAKE) -C run/ install +run_uninstall: + $(MAKE) -C run/ uninstall -.PHONY: default clean install \ - posix posix_clean posix_install \ - run run_clean run_install +.PHONY: default clean install uninstall\ + posix posix_clean posix_install posix_uninstall \ + run run_clean run_install run_uninstall diff --git a/preload/posix/Makefile b/preload/posix/Makefile index ce0be4e..40ca573 100644 --- a/preload/posix/Makefile +++ b/preload/posix/Makefile @@ -82,11 +82,14 @@ install: fiu_posix_preload.so $(INSTALL) -d $(PREFIX)/lib $(INSTALL) -m 0755 fiu_posix_preload.so $(PREFIX)/lib +uninstall: + $(RM) $(PREFIX)/lib/fiu_posix_preload.so + clean: rm -f $(OBJS) $(GEN_OBJS:.o=.c) $(GEN_FL) build-flags rm -f function_list fiu_posix_preload.so rm -f *.bb *.bbg *.da *.gcov *.gcda *.gcno gmon.out -.PHONY: default install clean .force-build-flags +.PHONY: default install uninstall clean .force-build-flags diff --git a/preload/run/Makefile b/preload/run/Makefile index ec419ea..bd4fca3 100644 --- a/preload/run/Makefile +++ b/preload/run/Makefile @@ -69,10 +69,15 @@ install: fiu_run_preload.so fiu-run $(INSTALL) -d $(PREFIX)/share/man/man1 $(INSTALL) -m 0644 fiu-run.1 $(PREFIX)/share/man/man1/ +uninstall: + $(RM) $(PREFIX)/lib/fiu_run_preload.so + $(RM) $(PREFIX)/bin/fiu-run + $(RM) $(PREFIX)/share/man/man1/fiu-run.1 + clean: rm -f $(OBJS) fiu_run_preload.so fiu-run build-flags rm -f *.bb *.bbg *.da *.gcov *.gcda *.gcno gmon.out -.PHONY: default install clean .force-build-flags +.PHONY: default install uninstall clean .force-build-flags diff --git a/utils/Makefile b/utils/Makefile index 16dd744..6c7891d 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -16,8 +16,14 @@ install: $(INSTALL) -m 0644 fiu-ctrl.1 $(PREFIX)/share/man/man1/ $(INSTALL) -m 0644 fiu-ls.1 $(PREFIX)/share/man/man1/ +uninstall: + $(RM) $(PREFIX)/bin/fiu-ctrl + $(RM) $(PREFIX)/bin/fiu-ls + $(RM) $(PREFIX)/share/man/man1/fiu-ctrl.1 + $(RM) $(PREFIX)/share/man/man1/fiu-ls.1 + clean: -.PHONY: default install clean +.PHONY: default install uninstall clean