X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fbyteswap;h=c1da40074c30f45fa0142b98941c63cc4753edeb;hb=04707083859be0e1be90aac1355e4efe5c3a339b;hp=37f521fe9fe7d1fb2c1f3ebd16374cde73ba8e7a;hpb=293ec82ede14e2a6f3443637e5a8fb9da9ce3cbe;p=gnulib.git diff --git a/modules/byteswap b/modules/byteswap index 37f521fe9..c1da40074 100644 --- a/modules/byteswap +++ b/modules/byteswap @@ -15,18 +15,24 @@ 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 + } > $@-t && \ mv -f $@-t $@ +else +byteswap.h: $(top_builddir)/config.status + rm -f $@ +endif MOSTLYCLEANFILES += byteswap.h byteswap.h-t Include: License: -LGPL +LGPLv2+ Maintainer: Oskar Liljeblad