and for out of dir builds

git-svn-id: file:///svn/unbound/trunk@1558 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2009-03-25 16:22:02 +00:00
parent 11f11a5377
commit 31ec67fcce

View file

@ -280,6 +280,7 @@ unbound-control-setup: $(srcdir)/smallapp/unbound-control-setup.sh
ifeq "$(WITH_PYTHONMODULE)" "yes"
pythonmod/pythonmod.c: pythonmod/interface.h
%.h: $(srcdir)/%.i $(srcdir)/config.h
@-if test ! -d $(dir $@); then $(INSTALL) -d $(patsubst %/,%,$(dir $@)); fi
$(INFO) Swig $<
$Q$(SWIG) $(CPPFLAGS) -o $@ -python $<
endif