gnulib-tool.py: Reduce code duplication in file name transformations.
[gnulib.git] / modules / byteswap
blob68fe6b78ae41990ea000cbd53a0702782d027b42
1 Description:
2 Swap bytes of 16, 32 and 64 bit values.
4 Files:
5 lib/byteswap.in.h
6 m4/byteswap.m4
8 Depends-on:
9 gen-header
11 configure.ac:
12 gl_BYTESWAP
13 gl_CONDITIONAL_HEADER([byteswap.h])
14 AC_PROG_MKDIR_P
16 Makefile.am:
17 BUILT_SOURCES += $(BYTESWAP_H)
19 # We need the following in order to create <byteswap.h> when the system
20 # doesn't have one.
21 if GL_GENERATE_BYTESWAP_H
22 byteswap.h: byteswap.in.h $(top_builddir)/config.status
23 @NMD@   $(AM_V_GEN)$(MKDIR_P) '%reldir%'
24         $(gl_V_at)$(SED_HEADER_TO_AT_t) $(srcdir)/byteswap.in.h
25         $(AM_V_at)mv $@-t $@
26 else
27 byteswap.h: $(top_builddir)/config.status
28         rm -f $@
29 endif
30 MOSTLYCLEANFILES += byteswap.h byteswap.h-t
32 Include:
33 <byteswap.h>
35 License:
36 LGPLv2+
38 Maintainer:
39 Oskar Liljeblad