[NUT-devel] [nut]: r564 - src/trunk/Makefile

diego subversion at mplayerhq.hu
Sat Feb 2 14:45:26 CET 2008


Author: diego
Date: Sat Feb  2 14:45:25 2008
New Revision: 564

Log:
Add uninstall-nututils target.


Modified:
   src/trunk/Makefile

Modified: src/trunk/Makefile
==============================================================================
--- src/trunk/Makefile	(original)
+++ src/trunk/Makefile	Sat Feb  2 14:45:25 2008
@@ -24,12 +24,17 @@ install-nututils: nututils
 	install -d $(prefix)/bin
 	install -m 755 $(NUTUTILS_PROGS) $(prefix)/bin
 
-uninstall:
+uninstall: uninstall-libnut uninstall-nututils
+
+uninstall-libnut:
 	rm -f $(prefix)/lib/libnut.a
 	rm -f $(prefix)/include/libnut.h
 
+uninstall-nututils:
+	rm -f $(addprefix $(prefix)/bin/, $(subst nututils/,,$(NUTUTILS_PROGS)))
+
 clean distclean:
 	rm -f libnut/*\~ libnut/*.o libnut/libnut.so libnut/libnut.a
 	rm -f nututils/*\~ nututils/*.o  $(NUTUTILS_PROGS)
 
-.PHONY: all libnut nututils install* uninstall clean distclean
+.PHONY: all libnut nututils install* uninstall* clean distclean



More information about the NUT-devel mailing list