Skip to content

Commit

Permalink
Improve swig build with help from Michael Forney.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Sep 11, 2009
1 parent 020738d commit d653dcd
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SUBDIRS = src/framework \
src/mlt++ \
src/melt \
src/modules \
src/swig \
profiles

all clean:
Expand Down
6 changes: 5 additions & 1 deletion src/swig/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include ../../config.mak
include config.mak

all clean depend install:
all clean:
list='$(SUBDIRS)'; \
for subdir in $$list; do \
if [ -x $$subdir/build -a ! -f .$$subdir -o $@ = clean ] ; \
Expand All @@ -20,3 +20,7 @@ all clean depend install:
fi ; \
fi \
done

depend:

install:
8 changes: 7 additions & 1 deletion src/swig/configure
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ else
do
case $i in
--swig-languages=* ) languages=${i#--swig-languages=}
[ "$languages" = "none" ] && languages=""
if [ -z "$languages" ]; then
echo SUBDIRS = $languages > config.mak
continue
fi
which swig > /dev/null 2>&1
[ $? != 0 ] && echo "Please install swig" && exit 1
[ "$languages" = "all" ] && languages="java lua perl php python ruby tcl"
echo SUBDIRS = ${i#--swig-languages=} > config.mak ;;
echo SUBDIRS = $languages > config.mak
;;
esac
done
fi

0 comments on commit d653dcd

Please sign in to comment.