Re #1630 (misc): Thanks to Mark Michelson for the patch.
This creates an "uninstall" target in the project Makefile that will remove the installed libraries from the system. git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4627 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
1afe01bf0f
commit
2938e723c6
12
Makefile
12
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
|
||||
|
|
Loading…
Reference in New Issue