X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fbyteswap;h=c1da40074c30f45fa0142b98941c63cc4753edeb;hb=46f5f314f34a08c9305758482d7d2fdb0e999d09;hp=d16af57f6aea1186535831b7a46ef09215883d37;hpb=abac9b73490cd4d59a1e454c6ade5fd2073f2d2f;p=gnulib.git diff --git a/modules/byteswap b/modules/byteswap index d16af57f6..c1da40074 100644 --- a/modules/byteswap +++ b/modules/byteswap @@ -11,19 +11,21 @@ configure.ac: gl_BYTESWAP Makefile.am: -nodist_pkginclude_HEADERS += $(BYTESWAP_H) -EXTRA_HEADERS += byteswap.h - BUILT_SOURCES += $(BYTESWAP_H) # We need the following in order to create when the system # doesn't have one. -byteswap.h: byteswap.in.h +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 Include: