Changeset 78 for NEWT0/trunk/Makefile.in


Ignore:
Timestamp:
03/24/07 09:40:52 (5 years ago)
Author:
pguyot
Message:

Add support to install Newt/0 at a fixed location on a Unix system.
contrib/ Makefiles are now configured.
Makefiles now include install phases.
"Require" now uses a load path that is set by default based on configuration
parameters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEWT0/trunk/Makefile.in

    r56 r78  
    55build = ./build 
    66ext = ./ext 
     7contrib = ./contrib 
    78utils = $(srcdir)/utils 
    89parser = $(srcdir)/parser 
     
    1314docdir = $(build)/html 
    1415 
    15  
     16DESTROOT = 
    1617CC = @CC@ 
    1718YACC = @YACC@ -d 
     
    2526LDSHARED = @LIBNEWT_LDSHARED@ 
    2627 
     28prefix = @prefix@ 
     29exec_prefix = @exec_prefix@ 
     30bindir = @bindir@ 
     31sitedir = ${prefix}/lib/newt0 
    2732 
    2833VPATH = $(core) 
     
    6065                $(ext)/protoREGEX 
    6166 
     67CONTRIBLIBS   = $(contrib)/NewtObjC \ 
     68        $(contrib)/NativeCalls 
     69 
    6270OBJS          = $(MAINOBJ) $(UTILSOBJS) $(PARSEROBJS) $(COREOBJS) 
    6371 
     
    7179### all 
    7280 
    73 all: newt @MAKE_EXT@ 
    74  
     81all: newt @MAKE_EXT@ @MAKE_CONTRIB@ 
    7582 
    7683### make directory 
     
    132139    $(MAKE) -C $@ 
    133140 
     141contrib: $(CONTRIBLIBS) 
     142 
     143$(CONTRIBLIBS):: 
     144    $(MAKE) -C $@ 
    134145 
    135146### strip (for win) 
     
    160171    cd misc; doxygen doxygen.conf 
    161172 
     173### INSTALL 
     174 
     175.PHONY : install install_ext install_contrib 
     176 
     177install_ext:: 
     178    @for subdir in $(NEWTLIBS); do \ 
     179        (cd $$subdir && $(MAKE) install) || exit 1; \ 
     180    done 
     181 
     182install_contrib:: 
     183    @for subdir in $(CONTRIBLIBS); do \ 
     184        (cd $$subdir && $(MAKE) install) || exit 1; \ 
     185    done 
     186 
     187install:: 
     188    install -m 755 $(NEWT) $(DESTDIR)$(bindir) 
     189    install -d -m 755 $(DESTDIR)$(sitedir) 
     190    test "x@MAKE_EXT@" = x || $(MAKE) install_ext 
     191    test "x@MAKE_CONTRIB@" = x || $(MAKE) install_contrib 
    162192 
    163193### TEST 
Note: See TracChangeset for help on using the changeset viewer.