summaryrefslogtreecommitdiff
path: root/nt/gnulib.mk
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-10-04 16:27:11 +0200
committerMartin Rudalics <rudalics@gmx.at>2013-10-04 16:27:11 +0200
commitcd30a8e09c1bf7c64132eba5d27cb26583596b98 (patch)
tree58e82abcea046b0a8ec8ee7a52942b00d1b8a39b /nt/gnulib.mk
parent942f6f82c991254317f1fe109e3072350d6986d6 (diff)
downloademacs-cd30a8e09c1bf7c64132eba5d27cb26583596b98.tar.gz
In nt/gnulib.mk create <byteswap.h> from <byteswap.in.h>.
* gnulib.mk: Create <byteswap.h> from <byteswap.in.h>.
Diffstat (limited to 'nt/gnulib.mk')
-rw-r--r--nt/gnulib.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/nt/gnulib.mk b/nt/gnulib.mk
index df27dcf610c..ff46e9f09a6 100644
--- a/nt/gnulib.mk
+++ b/nt/gnulib.mk
@@ -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