Changeset 1dba5bd


Ignore:
Timestamp:
Apr 4, 2013, 2:31:41 AM (8 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master
Children:
5db8835
Parents:
574b952
git-author:
Anders Kaseorg <andersk@mit.edu> (12/12/12 20:02:32)
git-committer:
Anders Kaseorg <andersk@mit.edu> (04/04/13 02:31:41)
Message:
Allow running barnowl within a separate build directory

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r574b952 r1dba5bd  
    1818check_SCRIPTS = tester
    1919
    20 barnowl tester: %: barnowl-wrapper.in %.bin
    21         cp $< $@
     20barnowl tester: %: barnowl-wrapper.in %.bin Makefile
     21        sed \
     22            -e 's,[@]abs_srcdir[@],$(abs_srcdir),g' \
     23            -e 's,[@]abs_builddir[@],$(abs_builddir),g' \
     24            $< > $@
    2225        chmod +x $@
    2326
  • barnowl-wrapper.in

    r574b952 r1dba5bd  
    44# binary.
    55
    6 SRCDIR=`dirname "${0}"`
    76EXE="$0.bin"
    87
     
    1211fi
    1312
    14 BARNOWL_DATA_DIR="$SRCDIR/perl/"
    15 BARNOWL_BIN_DIR="$SRCDIR/"
     13BARNOWL_DATA_DIR="@abs_srcdir@/perl"
     14BARNOWL_BIN_DIR="@abs_builddir@"
    1615export BARNOWL_DATA_DIR
    1716export BARNOWL_BIN_DIR
Note: See TracChangeset for help on using the changeset viewer.