X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fbyteswap;h=c1da40074c30f45fa0142b98941c63cc4753edeb;hb=5f70dcfc4f65198adbce63a01a17f18b1627beee;hp=c5057bb66aa08c9a22a4ecd65fb32cc1bb4624ef;hpb=bd8cfad4eb68e459d9fd24144df7a106765f8c09;p=gnulib.git diff --git a/modules/byteswap b/modules/byteswap index c5057bb66..c1da40074 100644 --- a/modules/byteswap +++ b/modules/byteswap @@ -15,12 +15,17 @@ BUILT_SOURCES += $(BYTESWAP_H) # We need the following in order to create when the system # doesn't have one. -byteswap.h: byteswap.in.h - rm -f $@-t $@ +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 + } > $@-t && \ mv -f $@-t $@ +else +byteswap.h: $(top_builddir)/config.status + rm -f $@ +endif MOSTLYCLEANFILES += byteswap.h byteswap.h-t Include: