X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fbyteswap;h=c1da40074c30f45fa0142b98941c63cc4753edeb;hb=2d4d1028210d8eff40ab7559717a990000cb3d38;hp=6a3ce1525c76fb93de66e232df6c2b6468374203;hpb=47a8dd64accd4e522331866a73bb79adc2d6ca78;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: