From: Wouter Wijngaards Date: Wed, 27 Oct 2010 14:14:48 +0000 (+0000) Subject: net.h config.h and util.h are generated in the build directory and should be copied... X-Git-Tag: release-1.6.7~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f180eae96bdae2851742631437a16266bfbd3fc;p=thirdparty%2Fldns.git net.h config.h and util.h are generated in the build directory and should be copied from there. This fixes building outside of the source dir. --- diff --git a/Makefile.in b/Makefile.in index 93cd0d2d..9a41931c 100644 --- a/Makefile.in +++ b/Makefile.in @@ -125,7 +125,12 @@ libldns.la: $(LIBDNS_OBJECTS) libldns.la-export-all: $(LIBDNS_OBJECTS) $(LINK_LIB) -o libldns.la $(LIBDNS_LOBJECTS) -rpath $(libdir) $(RUNTIME_PATH) -$(addprefix include/ldns/, $(notdir $(LIBDNS_HEADERS))) include/ldns/util.h include/ldns/net.h include/ldns/config.h: include/ldns/%.h: $(srcdir)/ldns/%.h +$(addprefix include/ldns/, $(notdir $(LIBDNS_HEADERS))): include/ldns/%.h: $(srcdir)/ldns/%.h + @if [ ! -d include ] ; then ($(INSTALL) -d include || echo "include exists") ; fi ; + @if [ ! -d include/ldns ] ; then (cd include; ln -s ../ldns ./ldns || echo "include/ldns exists") ; fi ; + $(INSTALL) -c -m 644 $< ./include/ldns/ + +include/ldns/util.h include/ldns/net.h include/ldns/config.h: include/ldns/%.h: ./ldns/%.h @if [ ! -d include ] ; then ($(INSTALL) -d include || echo "include exists") ; fi ; @if [ ! -d include/ldns ] ; then (cd include; ln -s ../ldns ./ldns || echo "include/ldns exists") ; fi ; $(INSTALL) -c -m 644 $< ./include/ldns/