Ignore:
Timestamp:
Oct 21, 2013 7:07:35 AM (11 years ago)
Author:
ming
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/Makefile

    r3984 r4627  
    120120                sed -e "s!@PJ_LDLIBS@!$(PJ_LDLIBS)!" | \ 
    121121                sed -e "s!@PJ_INSTALL_CFLAGS@!$(PJ_INSTALL_CFLAGS)!" > $(DESTDIR)/$(prefix)/lib/pkgconfig/libpjproject.pc 
     122 
     123uninstall: 
     124        $(RM) $(DESTDIR)$(libdir)/pkgconfig/libpjproject.pc 
     125        -rmdir $(DESTDIR)$(libdir)/pkgconfig 2> /dev/null 
     126        for d in pjlib pjlib-util pjnath pjmedia pjsip; do \ 
     127                for f in $$d/include/*; do \ 
     128                        $(RM) -r "$(DESTDIR)$(includedir)/`basename $$f`"; \ 
     129                done; \ 
     130        done 
     131        -rmdir $(DESTDIR)$(includedir) 2> /dev/null 
     132        $(RM) $(addprefix $(DESTDIR)$(libdir)/,$(notdir $(APP_LIB_FILES))) 
     133        -rmdir $(DESTDIR)$(libdir) 2> /dev/null 
Note: See TracChangeset for help on using the changeset viewer.