projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
log1p: Provide replacement for Minix and MSVC.
[gnulib.git]
/
modules
/
byteswap
diff --git
a/modules/byteswap
b/modules/byteswap
index
37f521f
..
c1da400
100644
(file)
--- a/
modules/byteswap
+++ b/
modules/byteswap
@@
-15,18
+15,24
@@
BUILT_SOURCES += $(BYTESWAP_H)
# We need the following in order to create <byteswap.h> when the system
# doesn't have one.
# We need the following in order to create <byteswap.h> 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; \
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
cat $(srcdir)/byteswap.in.h; \
- } > $@-t
+ } > $@-t
&& \
mv -f $@-t $@
mv -f $@-t $@
+else
+byteswap.h: $(top_builddir)/config.status
+ rm -f $@
+endif
MOSTLYCLEANFILES += byteswap.h byteswap.h-t
Include:
<byteswap.h>
License:
MOSTLYCLEANFILES += byteswap.h byteswap.h-t
Include:
<byteswap.h>
License:
-LGPL
+LGPL
v2+
Maintainer:
Oskar Liljeblad
Maintainer:
Oskar Liljeblad