Files
mosh/src/include/Makefile.am
T
John Hood 12199114fe 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.
2020-05-17 23:55:09 -04:00

15 lines
287 B
Makefile

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