summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e33472fc..837477e0 100644
--- a/Makefile
+++ b/Makefile
@@ -119,3 +119,15 @@ install:
sed -e "s/@PJ_VERSION@/$(PJ_VERSION)/" | \
sed -e "s!@PJ_LDLIBS@!$(PJ_LDLIBS)!" | \
sed -e "s!@PJ_INSTALL_CFLAGS@!$(PJ_INSTALL_CFLAGS)!" > $(DESTDIR)/$(prefix)/lib/pkgconfig/libpjproject.pc
+
+uninstall:
+ $(RM) $(DESTDIR)$(libdir)/pkgconfig/libpjproject.pc
+ -rmdir $(DESTDIR)$(libdir)/pkgconfig 2> /dev/null
+ for d in pjlib pjlib-util pjnath pjmedia pjsip; do \
+ for f in $$d/include/*; do \
+ $(RM) -r "$(DESTDIR)$(includedir)/`basename $$f`"; \
+ done; \
+ done
+ -rmdir $(DESTDIR)$(includedir) 2> /dev/null
+ $(RM) $(addprefix $(DESTDIR)$(libdir)/,$(notdir $(APP_LIB_FILES)))
+ -rmdir $(DESTDIR)$(libdir) 2> /dev/null