help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: make and swig


From: debutant
Subject: Re: make and swig
Date: Wed, 17 Sep 2008 00:38:22 -0700 (PDT)

A made Boris' idea works like that:

"""
OUTPUT_PYTHON_DIR = ...
OUTPUT_SWIG_DIR= ...
INPUT_INTERFACE_DIR  = ...

$(OUTPUT_SWIG_DIR)/%_wrap.cxx: $(INPUT_INTERFACE_DIR)/%.i 
        swig -cxx -python -o $@ -outdir $(OUTPUT_PYTHON_DIR) $<
"""
 
Philip's idea is even better:
"""
$(OUTPUT_SWIG_DIR)/%_wrap.cxx %.py: $(INPUT_INTERFACE_DIR)/%.i 
          swig -cxx -python -o ${@:.py=_wrap.cxx} -outdir $(OUTPUT_PYTHON_DIR) 
$<
"""

Thank you very much, it really helped me !
Sincerely,
Michel

-- 
View this message in context: 
http://www.nabble.com/make-and-swig-tp19501331p19526867.html
Sent from the Gnu - Make - Help mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]