Ignore:
Timestamp:
Apr 15, 2007 10:56:39 AM (18 years ago)
Author:
bennylp
Message:

Ticket #229: Added make install command (thanks Jan Nieuwenhuizen)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/Makefile

    r700 r1199  
    5858        done 
    5959 
     60prefix = /usr/local 
     61install: 
     62        mkdir -p $(DESTDIR)$(prefix)/lib 
     63        cp -L $$(find . -name '*.a') $(DESTDIR)$(prefix)/lib 
     64        mkdir -p $(DESTDIR)$(prefix)/include 
     65        cp -RL $$(find  . -name include) $(DESTDIR)$(prefix) 
     66        cd $(DESTDIR)$(prefix)/lib && for i in $$(find . -name 'libpj*a'); do\ 
     67                ln -s $$i $$(echo $$i | sed -e "s/-$(TARGET_NAME)//");\ 
     68        done 
     69        mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig 
     70        sed -e "s!@PREFIX@!$(DESTDIR)$(prefix)!" libpj.pc.in > $(DESTDIR)/$(prefix)/lib/pkgconfig/libpj.pc 
Note: See TracChangeset for help on using the changeset viewer.