Changeset 1200


Ignore:
Timestamp:
Apr 15, 2007 10:58:29 AM (13 years ago)
Author:
bennylp
Message:

Implemented ticket #230: Added make install command (thanks Jan Nieuwenhuizen)

Location:
pjproject/trunk
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/Makefile

    r1112 r1200  
    5959        done 
    6060 
     61prefix = /usr/local 
     62install: 
     63        mkdir -p $(DESTDIR)$(prefix)/lib 
     64        cp -L $$(find . -name '*.a') $(DESTDIR)$(prefix)/lib 
     65        mkdir -p $(DESTDIR)$(prefix)/include 
     66        cp -RL $$(find  . -name include) $(DESTDIR)$(prefix) 
     67        cd $(DESTDIR)$(prefix)/lib && for i in $$(find . -name 'libpj*a'); do\ 
     68                ln -s $$i $$(echo $$i | sed -e "s/-$(TARGET_NAME)//");\ 
     69        done 
     70        mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig 
     71        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.