Changeset 18945

Show
Ignore:
Timestamp:
06/01/06 18:06:35 (3 years ago)
Author:
patrick
Message:

Wipe out versioned files and directories in $(instlinks) when (it is highly
likely that) the version has changed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/sonix/Makefile.inc.in

    r18934 r18945  
    3636 
    3737# Variables whose values are specific to this file. 
     38data_subdir=    @data_subdir@ 
    3839includedir=     @includedir@ 
    3940instlinks=      $(topdir)/instlinks 
     
    135136 
    136137$(PARAM_HEADER): $(ROOT_ABS)/$(PARAM_HEADER).in $(ROOT_ABS)/VERSION 
     138        @$(MAKE) clean-version-links 
    137139        @$(SHELL) $(scriptdir)/make-ver.sh -o $@                \ 
    138140          -i $(ROOT_ABS)/$@.in $(VER_ARGS) 
     
    236238endif 
    237239 
     240clean-version-links: 
     241        @rm -rf $(instlinks)/include/sonix* $(instlinks)/lib*/sonix*    \ 
     242           $(instlinks)/$(data_subdir)/sonix* 
     243        @for l in $(LIBS) ; do                                          \ 
     244            find $(instlinks) -name "$$l*" -exec rm {} ';' ;            \ 
     245         done 
     246 
    238247links-all: 
    239248        @$(MAKE) EXTRA_INSTALL_ARGS=-l prefix="$(instlinks)" installworld 
  • juggler/trunk/modules/sonix/configure.ac

    r18934 r18945  
    299299# all cases.  A person would have to be doing something malicious or foolish 
    300300# to make it break. 
    301 SNX_SHARE_DIR=`echo "$datadir/$DATA_VERSION" | sed -e 's|^${prefix}/||'
    302 SNX_SHARE_DIR=`echo "$SNX_SHARE_DIR" | sed -e "${_prefix_exp}"` 
     301data_subdir=`echo "$datadir" | sed -e 's|^${prefix}/||' -e "${_prefix_exp}"
     302SNX_SHARE_DIR="$data_subdir/$DATA_VERSION" 
    303303 
    304304snx_lib_name="sonix$LIBRARY_VERSION" 
     
    353353DPP_GET_PROJECTDIR 
    354354 
     355AC_SUBST(data_subdir) 
    355356AC_SUBST(topdir) 
    356357AC_SUBST(UNIX_SNXROOT_ABS)