]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
net.h config.h and util.h are generated in the build directory and should be copied...
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Wed, 27 Oct 2010 14:14:48 +0000 (14:14 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Wed, 27 Oct 2010 14:14:48 +0000 (14:14 +0000)
Makefile.in

index 93cd0d2deac993a002d6812fe1bd8ef3b038eae5..9a41931c0fbf01e963b678db1b2fdb0b45483813 100644 (file)
@@ -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/