diff options
author | John Hood <cgull@glup.org> | 2019-07-09 00:30:16 -0400 |
---|---|---|
committer | John Hood <cgull@glup.org> | 2020-05-17 23:55:09 -0400 |
commit | 12199114fe4234f791ef4c306163901643b40538 (patch) | |
tree | 716e52137529ebc9ee3d23430dbc7229b0c114e3 /src | |
parent | 609fb91fbc6b2bcb2caa344d46e679c4fbb9f975 (diff) |
Move generated includes to their own directory to avoid conflicts.
Fixes #1051, mosh fails to build on case-insensitive filesystems.
XXX This isn't perfect because autoconf/automake drop several extra
files in the directory anyway.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/include/Makefile.am | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 2390f7c..a714997 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1 +1 @@ -SUBDIRS = protobufs util crypto terminal network statesync frontend examples tests +SUBDIRS = include protobufs util crypto terminal network statesync frontend examples tests diff --git a/src/include/Makefile.am b/src/include/Makefile.am new file mode 100644 index 0000000..bd15b83 --- /dev/null +++ b/src/include/Makefile.am @@ -0,0 +1,14 @@ +BUILT_SOURCES = version.h +nodist_INCLUDES = version.h + +clean-local: + @rm -rf version.h + +version.h: ../../VERSION + @test -s $< + @printf '#define BUILD_VERSION "%s"\n' "$$(cat $<)" > $@.new + @set -e; if ! diff -q $@ $@.new > /dev/null 2>&1; then \ + mv -f $@.new $@; \ + fi + @rm -f $@.new + |