-SUBDIRS = po data doc otk src scripts
+SUBDIRS = po data doc otk wrap src scripts
MAINTAINERCLEANFILES = aclocal.m4 config.h.in configure Makefile.in stamp-h.in
.PHONY: doc
CXXFLAGS = $(XFT_CFLAGS) $(filter-out -W -Wall,@CXXFLAGS@)
-INCLUDES = -I.. -I../..
+INCLUDES = -I.. -I../swig
python_LTLIBRARIES = otkpy.la
otkpy_la_CXXFLAGS = $(PYTHON_CFLAGS)
otkpy_la_LDFLAGS = -module
otkpy_la_SOURCES = wrap_otk.cc
-otkpy_la_LIBADD = ../libotk.la
+otkpy_la_LIBADD = ../otk/libotk.la
CLEANFILES = wrap_* otk.py
MAINTAINERCLEANFILES = Makefile.in
%.py: wrap_%.cc
-wrap_%.cc: %.i $(wildcard ../*.hh)
+otk.i: $(wildcard ../otk/*.hh)
+ @touch $@
+
+wrap_%.cc: %.i
swig $(INCLUDES) $(filter -I%,$(CXXFLAGS)) -python -shadow -c++ -nodefault -o $@ $<