In nt/gnulib.mk create <byteswap.h> from <byteswap.in.h>.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Oct 2013 14:27:11 +0000 (16:27 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Fri, 4 Oct 2013 14:27:11 +0000 (16:27 +0200)
* gnulib.mk: Create <byteswap.h> from <byteswap.in.h>.

nt/ChangeLog
nt/gnulib.mk

index 2f9a2f5..94bd71d 100644 (file)
@@ -1,3 +1,7 @@
+2013-10-04  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * gnulib.mk: Create <byteswap.h> from <byteswap.in.h>.
+
 2013-09-20  Eli Zaretskii  <eliz@gnu.org>
 
        * mingw-cfg.site (gl_cv_sys_struct_timeval_tv_sec): Set to "yes"
index df27dcf..ff46e9f 100644 (file)
@@ -78,6 +78,29 @@ EXTRA_DIST += alloca.in.h
 
 ## end   gnulib module alloca-opt
 
+## begin gnulib module byteswap
+
+BUILT_SOURCES += $(BYTESWAP_H)
+
+# We need the following in order to create <byteswap.h> when the system
+# doesn't have one.
+if GL_GENERATE_BYTESWAP_H
+byteswap.h: byteswap.in.h $(top_builddir)/config.status
+       $(AM_V_GEN)rm -f $@-t $@ && \
+       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+         cat $(srcdir)/byteswap.in.h; \
+       } > $@-t && \
+       mv -f $@-t $@
+else
+byteswap.h: $(top_builddir)/config.status
+       rm -f $@
+endif
+MOSTLYCLEANFILES += byteswap.h byteswap.h-t
+
+EXTRA_DIST += byteswap.in.h
+
+## end   gnulib module byteswap
+
 ## begin gnulib module c-ctype
 
 libgnu_a_SOURCES += c-ctype.h c-ctype.c