X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fbyteswap;h=c1da40074c30f45fa0142b98941c63cc4753edeb;hb=04707083859be0e1be90aac1355e4efe5c3a339b;hp=6a3ce1525c76fb93de66e232df6c2b6468374203;hpb=4013d14c4b1f18cb4b665a0a47ad80ce3224d25d;p=gnulib.git diff --git a/modules/byteswap b/modules/byteswap index 6a3ce1525..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 +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: