Revision d3cb93b3

View differences:

Makefile
110 110
	install -d "$(MANDIR)/man1"
111 111
	install -m 644 $(MANPAGES) "$(MANDIR)/man1"
112 112

  
113
uninstall:
114
	@echo "I'm sorry, Dave. I'm afraid I can't do that"
113
uninstall: uninstall-progs uninstall-data uninstall-man
114

  
115
uninstall-progs:
116
	rm -f $(addprefix "$(BINDIR)/", $(ALLPROGS))
117

  
118
uninstall-data:
119
	rm -rf "$(DATADIR)"
120

  
121
uninstall-man:
122
	rm -f $(addprefix "$(MANDIR)/man1/",$(ALLMANPAGES))
115 123

  
116 124
testclean:
117 125
	rm -rf tests/vsynth1 tests/vsynth2 tests/data tests/*~
common.mak
47 47

  
48 48
install: install-libs install-headers
49 49

  
50
.PHONY: all depend dep *clean install* uninstall examples testprogs
50
uninstall: uninstall-libs uninstall-headers
51

  
52
.PHONY: all depend dep *clean install* uninstall* examples testprogs
51 53
endif
52 54

  
53 55
OBJS-$(HAVE_MMX) +=  $(MMX-OBJS-yes)
subdir.mak
84 84
	install -m 644 $(addprefix $(SUBDIR),$(BUILT_HEADERS)) "$(INCINSTDIR)"
85 85
endif
86 86
	install -m 644 $(BUILD_ROOT)/lib$(NAME)/lib$(NAME).pc "$(LIBDIR)/pkgconfig"
87

  
88
uninstall-libs::
89
	-rm -f "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR)" \
90
	       "$(SHLIBDIR)/$(SLIBNAME)"            \
91
	       "$(SHLIBDIR)/$(SLIBNAME_WITH_VERSION)"
92
	-$(SLIB_UNINSTALL_EXTRA_CMD)
93
	-rm -f "$(LIBDIR)/$(LIBNAME)"
94

  
95
uninstall-headers::
96
	rm -f $(addprefix "$(INCINSTDIR)/",$(HEADERS))
97
	rm -f "$(LIBDIR)/pkgconfig/lib$(NAME).pc"
98
	-rmdir "$(INCDIR)"
87 99
endef
88 100

  
89 101
$(eval $(RULES))

Also available in: Unified diff