From: Wouter Wijngaards Date: Fri, 16 Feb 2007 14:58:45 +0000 (+0000) Subject: Nicer way to copy the headers. Lets make compare files. X-Git-Tag: release-1.2.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9f302deab98bc3f1e5ce07f7f138d2d0ff6db0b;p=thirdparty%2Fldns.git Nicer way to copy the headers. Lets make compare files. --- diff --git a/Makefile.in b/Makefile.in index 7286df73..f1179c72 100644 --- a/Makefile.in +++ b/Makefile.in @@ -88,14 +88,12 @@ lib: libldns.la libldns.la: $(LIBDNS_OBJECTS) $(LINK_LIB) -o libldns.la $(LIBDNS_LOBJECTS) -rpath $(libdir) $(RUNTIME_PATH) -copy-headers: - if [ ! -d include ] ; then mkdir include ; fi ; - if [ ! -d include/ldns ] ; then ln -s ../ldns ./include/ldns ; fi ; - for i in $(LIBDNS_HEADERS); do \ - if [ $(srcdir)/ldns/$$i -nt ./include/ldns/$$i ] ; then \ - MVPROG=/bin/cp $(INSTALL) -m 644 $$i ./include/ldns/; \ - fi ; \ - done +$(addprefix include/ldns/, $(notdir $(LIBDNS_HEADERS))): include/ldns/%.h: $(srcdir)/ldns/%.h + @if [ ! -d include ] ; then mkdir include ; fi ; + @if [ ! -d include/ldns ] ; then ln -s ../ldns ./include/ldns ; fi ; + MVPROG=/bin/cp $(INSTALL) -m 644 $< ./include/ldns/ + +copy-headers: $(addprefix include/ldns/, $(notdir $(LIBDNS_HEADERS))) doc: $(srcdir)/doc/function_manpages $(INSTALL) -d doc